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

Side by Side Diff: chrome/browser/ui/validation_message_bubble.h

Issue 13160004: Re-implement form validation message UI with native widgets. (Common and Mac) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adopt new Blink interface Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 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_VALIDATION_MESSAGE_BUBBLE_H_
6 #define CHROME_BROWSER_UI_VALIDATION_MESSAGE_BUBBLE_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "base/string16.h"
10
11 namespace content {
12 class RenderWidgetHost;
13 }
14
15 namespace gfx {
16 class Rect;
17 }
18
19 namespace chrome {
20
21 class ValidationMessageBubble {
22 public:
23 // Open a tooltip-like window to show the specified messages. The windows
Nico 2013/04/25 22:57:49 s/windows/window
tkent 2013/04/29 22:24:19 Done.
24 // should not change focus state.
25 static scoped_ptr<ValidationMessageBubble> CreateAndShow(
26 content::RenderWidgetHost* widget_host,
27 const gfx::Rect& anchor_in_screen,
28 const string16& main_text,
29 const string16& sub_text);
30
31 // Close the window and destruct the object.
32 virtual ~ValidationMessageBubble() {}
33 };
34
35 } // namespace chrome
36
37 #endif // CHROME_BROWSER_UI_VALIDATION_MESSAGE_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698