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