Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: chrome/browser/ui/views/validation_message_bubble_view.h

Issue 867323005: MacViews: Fix duplicate definition of ValidationMessageBubble::ShowAndCreate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FirstResponder
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_VALIDATION_MESSAGE_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_VALIDATION_MESSAGE_BUBBLE_VIEW_H_
7
8 #include "chrome/browser/ui/validation_message_bubble.h"
9 #include "chrome/browser/ui/views/validation_message_bubble_delegate.h"
10
11 namespace content {
12 class WebContents;
13 }
14
15 // A ValidationMessageBubble implementation for Views.
16 class ValidationMessageBubbleView
17 : public ValidationMessageBubble,
18 public ValidationMessageBubbleDelegate::Observer {
19 public:
20 ValidationMessageBubbleView(content::WebContents* web_contents,
21 const gfx::Rect& anchor_in_root_view,
22 const base::string16& main_text,
23 const base::string16& sub_text);
24 ~ValidationMessageBubbleView() override;
25
26 // ValidationMessageBubble overrides:
27 void SetPositionRelativeToAnchor(
28 content::RenderWidgetHost* widget_host,
29 const gfx::Rect& anchor_in_root_view) override;
30
31 // ValidationMessageBubbleDelegate::Observer overrides:
32 void WindowClosing() override;
33
34 private:
35 ValidationMessageBubbleDelegate* delegate_;
36
37 DISALLOW_COPY_AND_ASSIGN(ValidationMessageBubbleView);
38 };
39
40 #endif // CHROME_BROWSER_UI_VIEWS_VALIDATION_MESSAGE_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tab_dialogs_views.cc ('k') | chrome/browser/ui/views/validation_message_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698