| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "gfx/native_widget_types.h" | |
| 9 #include "chrome/browser/dom_ui/html_dialog_ui.h" | 8 #include "chrome/browser/dom_ui/html_dialog_ui.h" |
| 9 #include "ui/gfx/native_widget_types.h" |
| 10 | 10 |
| 11 class KeyboardOverlayDelegate : public HtmlDialogUIDelegate { | 11 class KeyboardOverlayDelegate : public HtmlDialogUIDelegate { |
| 12 public: | 12 public: |
| 13 KeyboardOverlayDelegate(const std::wstring& title); | 13 KeyboardOverlayDelegate(const std::wstring& title); |
| 14 | 14 |
| 15 // Shows the keyboard overlay dialog box. | 15 // Shows the keyboard overlay dialog box. |
| 16 static void ShowDialog(gfx::NativeWindow owning_window); | 16 static void ShowDialog(gfx::NativeWindow owning_window); |
| 17 | 17 |
| 18 private: | 18 private: |
| 19 ~KeyboardOverlayDelegate(); | 19 ~KeyboardOverlayDelegate(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 30 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog); | 30 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog); |
| 31 virtual bool ShouldShowDialogTitle() const; | 31 virtual bool ShouldShowDialogTitle() const; |
| 32 | 32 |
| 33 // The dialog title. | 33 // The dialog title. |
| 34 std::wstring title_; | 34 std::wstring title_; |
| 35 | 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(KeyboardOverlayDelegate); | 36 DISALLOW_COPY_AND_ASSIGN(KeyboardOverlayDelegate); |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 #endif // CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DELEGATE_H_ | 39 #endif // CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DELEGATE_H_ |
| OLD | NEW |