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