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

Side by Side Diff: chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h

Issue 10383239: Move NativeWebKeyboardEvent to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 7 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
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_WEBUI_CONSTRAINED_WEB_DIALOG_DELEGATE_BASE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_DELEGATE_BASE_H_
6 #define CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_DELEGATE_BASE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_DELEGATE_BASE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 10 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
(...skipping 19 matching lines...) Expand all
30 virtual const WebDialogDelegate* 30 virtual const WebDialogDelegate*
31 GetWebDialogDelegate() const OVERRIDE; 31 GetWebDialogDelegate() const OVERRIDE;
32 virtual WebDialogDelegate* GetWebDialogDelegate() OVERRIDE; 32 virtual WebDialogDelegate* GetWebDialogDelegate() OVERRIDE;
33 virtual void OnDialogCloseFromWebUI() OVERRIDE; 33 virtual void OnDialogCloseFromWebUI() OVERRIDE;
34 virtual void ReleaseTabContentsOnDialogClose() OVERRIDE; 34 virtual void ReleaseTabContentsOnDialogClose() OVERRIDE;
35 virtual ConstrainedWindow* window() OVERRIDE; 35 virtual ConstrainedWindow* window() OVERRIDE;
36 virtual TabContentsWrapper* tab() OVERRIDE; 36 virtual TabContentsWrapper* tab() OVERRIDE;
37 37
38 // WebDialogWebContentsDelegate interface. 38 // WebDialogWebContentsDelegate interface.
39 virtual void HandleKeyboardEvent( 39 virtual void HandleKeyboardEvent(
40 const NativeWebKeyboardEvent& event) OVERRIDE; 40 const content::NativeWebKeyboardEvent& event) OVERRIDE;
41 41
42 protected: 42 protected:
43 void set_override_tab_delegate( 43 void set_override_tab_delegate(
44 WebDialogWebContentsDelegate* override_tab_delegate); 44 WebDialogWebContentsDelegate* override_tab_delegate);
45 45
46 private: 46 private:
47 WebDialogDelegate* web_dialog_delegate_; 47 WebDialogDelegate* web_dialog_delegate_;
48 48
49 // The constrained window that owns |this|. Saved so we can close it later. 49 // The constrained window that owns |this|. Saved so we can close it later.
50 ConstrainedWindow* window_; 50 ConstrainedWindow* window_;
51 51
52 // Holds the HTML to display in the constrained dialog. 52 // Holds the HTML to display in the constrained dialog.
53 scoped_ptr<TabContentsWrapper> tab_; 53 scoped_ptr<TabContentsWrapper> tab_;
54 54
55 // Was the dialog closed from WebUI (in which case |web_dialog_delegate_|'s 55 // Was the dialog closed from WebUI (in which case |web_dialog_delegate_|'s
56 // OnDialogClosed() method has already been called)? 56 // OnDialogClosed() method has already been called)?
57 bool closed_via_webui_; 57 bool closed_via_webui_;
58 58
59 // If true, release |tab_| on close instead of destroying it. 59 // If true, release |tab_| on close instead of destroying it.
60 bool release_tab_on_close_; 60 bool release_tab_on_close_;
61 61
62 scoped_ptr<WebDialogWebContentsDelegate> override_tab_delegate_; 62 scoped_ptr<WebDialogWebContentsDelegate> override_tab_delegate_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(ConstrainedWebDialogDelegateBase); 64 DISALLOW_COPY_AND_ASSIGN(ConstrainedWebDialogDelegateBase);
65 }; 65 };
66 66
67 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_DELEGATE_BASE_H_ 67 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_DELEGATE_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/web_dialog_view.cc ('k') | chrome/browser/ui/webui/constrained_web_dialog_delegate_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698