OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DELEGATE_H_ |
| 7 |
| 8 #include "gfx/native_widget_types.h" |
| 9 #include "chrome/browser/dom_ui/html_dialog_ui.h" |
| 10 |
| 11 class KeyboardOverlayDelegate : public HtmlDialogUIDelegate { |
| 12 public: |
| 13 KeyboardOverlayDelegate(const std::wstring& title); |
| 14 |
| 15 // Shows the keyboard overlay dialog box. |
| 16 static void ShowDialog(gfx::NativeWindow owning_window); |
| 17 |
| 18 private: |
| 19 ~KeyboardOverlayDelegate(); |
| 20 |
| 21 // Overridden from HtmlDialogUI::Delegate: |
| 22 virtual bool IsDialogModal() const; |
| 23 virtual std::wstring GetDialogTitle() const; |
| 24 virtual GURL GetDialogContentURL() const; |
| 25 virtual void GetDOMMessageHandlers( |
| 26 std::vector<DOMMessageHandler*>* handlers) const; |
| 27 virtual void GetDialogSize(gfx::Size* size) const; |
| 28 virtual std::string GetDialogArgs() const; |
| 29 virtual void OnDialogClosed(const std::string& json_retval); |
| 30 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog); |
| 31 virtual bool ShouldShowDialogTitle() const; |
| 32 |
| 33 // The dialog title. |
| 34 std::wstring title_; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(KeyboardOverlayDelegate); |
| 37 }; |
| 38 |
| 39 #endif // CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DELEGATE_H_ |
OLD | NEW |