OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DIALOG_VIEW_H_ | 5 #ifndef ASH_WM_KEYBOARD_OVERLAY_VIEW_H_ |
Ben Goodger (Google)
2012/07/25 16:36:51
hrm... I think this should be in its own dir..
e.
mazda
2012/07/25 17:36:32
Done.
| |
6 #define CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DIALOG_VIEW_H_ | 6 #define ASH_WM_KEYBOARD_OVERLAY_VIEW_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | |
8 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
9 #include "ui/views/controls/webview/web_dialog_view.h" | 10 #include "ui/views/controls/webview/web_dialog_view.h" |
10 | 11 |
12 class GURL; | |
13 | |
11 namespace content { | 14 namespace content { |
12 class BrowserContext; | 15 class BrowserContext; |
13 } | 16 } |
14 | 17 |
15 namespace ui { | 18 namespace ui { |
16 class WebDialogDelegate; | 19 class WebDialogDelegate; |
17 } | 20 } |
18 | 21 |
19 // A customized dialog view for the keyboard overlay. | 22 // A customized dialog view for the keyboard overlay. |
20 class KeyboardOverlayDialogView : public views::WebDialogView { | 23 class ASH_EXPORT KeyboardOverlayView : public views::WebDialogView { |
21 public: | 24 public: |
22 KeyboardOverlayDialogView(content::BrowserContext* context, | 25 KeyboardOverlayView(content::BrowserContext* context, |
23 ui::WebDialogDelegate* delegate, | 26 ui::WebDialogDelegate* delegate, |
24 WebContentsHandler* handler); | 27 WebContentsHandler* handler); |
25 virtual ~KeyboardOverlayDialogView(); | 28 virtual ~KeyboardOverlayView(); |
26 | 29 |
27 // Shows the keyboard overlay. | 30 // Shows the keyboard overlay. |
28 static void ShowDialog(content::BrowserContext* context, | 31 static void ShowDialog(content::BrowserContext* context, |
29 WebContentsHandler* handler); | 32 WebContentsHandler* handler, |
33 const GURL& url); | |
30 | 34 |
31 private: | 35 private: |
32 // Overridden from views::WidgetDelegate: | 36 // Overridden from views::WidgetDelegate: |
33 virtual void WindowClosing() OVERRIDE; | 37 virtual void WindowClosing() OVERRIDE; |
34 | 38 |
35 DISALLOW_COPY_AND_ASSIGN(KeyboardOverlayDialogView); | 39 DISALLOW_COPY_AND_ASSIGN(KeyboardOverlayView); |
36 }; | 40 }; |
37 | 41 |
38 #endif // CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DIALOG_VIEW_H_ | 42 #endif // ASH_WM_KEYBOARD_OVERLAY_VIEW_H_ |
OLD | NEW |