| 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 ASH_KEYBOARD_OVERLAY_KEYBOARD_OVERLAY_DELEGATE_H_ | 5 #ifndef ASH_KEYBOARD_OVERLAY_KEYBOARD_OVERLAY_DELEGATE_H_ |
| 6 #define ASH_KEYBOARD_OVERLAY_KEYBOARD_OVERLAY_DELEGATE_H_ | 6 #define ASH_KEYBOARD_OVERLAY_KEYBOARD_OVERLAY_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
| 11 #include "ui/web_dialogs/web_dialog_delegate.h" | 11 #include "ui/web_dialogs/web_dialog_delegate.h" |
| 12 | 12 |
| 13 namespace views { | 13 namespace views { |
| 14 class WebDialogView; | 14 class WebDialogView; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace ash { |
| 18 |
| 17 class KeyboardOverlayDelegate : public ui::WebDialogDelegate { | 19 class KeyboardOverlayDelegate : public ui::WebDialogDelegate { |
| 18 public: | 20 public: |
| 19 KeyboardOverlayDelegate(const string16& title, const GURL& url); | 21 KeyboardOverlayDelegate(const string16& title, const GURL& url); |
| 20 | 22 |
| 21 void Show(views::WebDialogView* view); | 23 void Show(views::WebDialogView* view); |
| 22 | 24 |
| 23 // Overridden from ui::WebDialogDelegate: | 25 // Overridden from ui::WebDialogDelegate: |
| 24 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; | 26 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; |
| 25 | 27 |
| 26 private: | 28 private: |
| (...skipping 19 matching lines...) Expand all Loading... |
| 46 // The URL of the keyboard overlay. | 48 // The URL of the keyboard overlay. |
| 47 GURL url_; | 49 GURL url_; |
| 48 | 50 |
| 49 // The view associated with this delegate. | 51 // The view associated with this delegate. |
| 50 // This class does not own the pointer. | 52 // This class does not own the pointer. |
| 51 views::WebDialogView* view_; | 53 views::WebDialogView* view_; |
| 52 | 54 |
| 53 DISALLOW_COPY_AND_ASSIGN(KeyboardOverlayDelegate); | 55 DISALLOW_COPY_AND_ASSIGN(KeyboardOverlayDelegate); |
| 54 }; | 56 }; |
| 55 | 57 |
| 58 } // namespace ash |
| 59 |
| 56 #endif // ASH_KEYBOARD_OVERLAY_KEYBOARD_OVERLAY_DELEGATE_H_ | 60 #endif // ASH_KEYBOARD_OVERLAY_KEYBOARD_OVERLAY_DELEGATE_H_ |
| OLD | NEW |