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 CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DIALOG_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DIALOG_VIEW_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/ui/views/web_dialog_view.h" | 9 #include "ui/views/controls/webview/web_dialog_view.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 class BrowserContext; | 12 class BrowserContext; |
13 } | 13 } |
14 | 14 |
15 namespace ui { | 15 namespace ui { |
16 class WebDialogDelegate; | 16 class WebDialogDelegate; |
17 } | 17 } |
18 | 18 |
19 // A customized dialog view for the keyboard overlay. | 19 // A customized dialog view for the keyboard overlay. |
20 class KeyboardOverlayDialogView : public WebDialogView { | 20 class KeyboardOverlayDialogView : public views::WebDialogView { |
21 public: | 21 public: |
22 KeyboardOverlayDialogView(content::BrowserContext* context, | 22 KeyboardOverlayDialogView(content::BrowserContext* context, |
23 ui::WebDialogDelegate* delegate, | 23 ui::WebDialogDelegate* delegate, |
24 WebContentsHandler* handler); | 24 WebContentsHandler* handler); |
25 virtual ~KeyboardOverlayDialogView(); | 25 virtual ~KeyboardOverlayDialogView(); |
26 | 26 |
27 // Shows the keyboard overlay. | 27 // Shows the keyboard overlay. |
28 static void ShowDialog(content::BrowserContext* context, | 28 static void ShowDialog(content::BrowserContext* context, |
29 WebContentsHandler* handler); | 29 WebContentsHandler* handler); |
30 | 30 |
31 private: | 31 private: |
32 // Overridden from views::WidgetDelegate: | 32 // Overridden from views::WidgetDelegate: |
33 virtual void WindowClosing() OVERRIDE; | 33 virtual void WindowClosing() OVERRIDE; |
34 | 34 |
35 DISALLOW_COPY_AND_ASSIGN(KeyboardOverlayDialogView); | 35 DISALLOW_COPY_AND_ASSIGN(KeyboardOverlayDialogView); |
36 }; | 36 }; |
37 | 37 |
38 #endif // CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DIALOG_VIEW_H_ | 38 #endif // CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DIALOG_VIEW_H_ |
OLD | NEW |