Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: ash/keyboard_overlay/keyboard_overlay_delegate.h

Issue 10824023: Revert "Revert 148383 - Move the keyboard overlay view to ash." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/keyboard_overlay/keyboard_overlay_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_DELEGATE_H_ 5 #ifndef ASH_KEYBOARD_OVERLAY_KEYBOARD_OVERLAY_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_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 "ui/web_dialogs/web_dialog_delegate.h" 11 #include "ui/web_dialogs/web_dialog_delegate.h"
11 12
12 namespace views { 13 namespace views {
13 class WebDialogView; 14 class WebDialogView;
14 } 15 }
15 16
16 class KeyboardOverlayDelegate : public ui::WebDialogDelegate { 17 class KeyboardOverlayDelegate : public ui::WebDialogDelegate {
17 public: 18 public:
18 explicit KeyboardOverlayDelegate(const string16& title); 19 KeyboardOverlayDelegate(const string16& title, const GURL& url);
19 20
20 void Show(views::WebDialogView* view); 21 void Show(views::WebDialogView* view);
21 22
22 // Overridden from ui::WebDialogDelegate: 23 // Overridden from ui::WebDialogDelegate:
23 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; 24 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE;
24 25
25 private: 26 private:
26 virtual ~KeyboardOverlayDelegate(); 27 virtual ~KeyboardOverlayDelegate();
27 28
28 // Overridden from ui::WebDialogDelegate: 29 // Overridden from ui::WebDialogDelegate:
29 virtual ui::ModalType GetDialogModalType() const OVERRIDE; 30 virtual ui::ModalType GetDialogModalType() const OVERRIDE;
30 virtual string16 GetDialogTitle() const OVERRIDE; 31 virtual string16 GetDialogTitle() const OVERRIDE;
31 virtual GURL GetDialogContentURL() const OVERRIDE; 32 virtual GURL GetDialogContentURL() const OVERRIDE;
32 virtual void GetWebUIMessageHandlers( 33 virtual void GetWebUIMessageHandlers(
33 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; 34 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE;
34 virtual std::string GetDialogArgs() const OVERRIDE; 35 virtual std::string GetDialogArgs() const OVERRIDE;
35 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; 36 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE;
36 virtual void OnCloseContents(content::WebContents* source, 37 virtual void OnCloseContents(content::WebContents* source,
37 bool* out_close_dialog) OVERRIDE; 38 bool* out_close_dialog) OVERRIDE;
38 virtual bool ShouldShowDialogTitle() const OVERRIDE; 39 virtual bool ShouldShowDialogTitle() const OVERRIDE;
39 virtual bool HandleContextMenu( 40 virtual bool HandleContextMenu(
40 const content::ContextMenuParams& params) OVERRIDE; 41 const content::ContextMenuParams& params) OVERRIDE;
41 42
42 // The dialog title. 43 // The dialog title.
43 string16 title_; 44 string16 title_;
44 45
46 // The URL of the keyboard overlay.
47 GURL url_;
48
45 // The view associated with this delegate. 49 // The view associated with this delegate.
46 // This class does not own the pointer. 50 // This class does not own the pointer.
47 views::WebDialogView* view_; 51 views::WebDialogView* view_;
48 52
49 DISALLOW_COPY_AND_ASSIGN(KeyboardOverlayDelegate); 53 DISALLOW_COPY_AND_ASSIGN(KeyboardOverlayDelegate);
50 }; 54 };
51 55
52 #endif // CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DELEGATE_H_ 56 #endif // ASH_KEYBOARD_OVERLAY_KEYBOARD_OVERLAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/keyboard_overlay/keyboard_overlay_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698