Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / validation_message_bubble_cocoa.h
blob6d6f0cacf477c2ee5b85783e742735ad9cfc34aa
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_COCOA_VALIDATION_MESSAGE_BUBBLE_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_VALIDATION_MESSAGE_BUBBLE_COCOA_H_
8 #include "base/mac/scoped_nsobject.h"
9 #include "chrome/browser/ui/validation_message_bubble.h"
11 @class ValidationMessageBubbleController;
13 namespace content {
14 class WebContents;
17 class ValidationMessageBubbleCocoa : public ValidationMessageBubble {
18 public:
19 ValidationMessageBubbleCocoa(content::WebContents* web_contents,
20 const gfx::Rect& anchor_in_root_view,
21 const base::string16& main_text,
22 const base::string16& sub_text);
23 ~ValidationMessageBubbleCocoa() override;
25 // ValidationMessageBubble overrides:
26 void SetPositionRelativeToAnchor(
27 content::RenderWidgetHost* widget_host,
28 const gfx::Rect& anchor_in_root_view) override;
30 private:
31 base::scoped_nsobject<ValidationMessageBubbleController> controller_;
33 DISALLOW_COPY_AND_ASSIGN(ValidationMessageBubbleCocoa);
36 #endif // CHROME_BROWSER_UI_COCOA_VALIDATION_MESSAGE_BUBBLE_COCOA_H_