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

Side by Side Diff: chrome_frame/external_tab.h

Issue 4200007: Refactor automation messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chrome_frame no longer depends on tab_contents.h Created 10 years, 1 month 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 | « chrome_frame/chrome_frame_plugin.h ('k') | chrome_frame/external_tab.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) 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_FRAME_EXTERNAL_TAB_H_ 5 #ifndef CHROME_FRAME_EXTERNAL_TAB_H_
6 #define CHROME_FRAME_EXTERNAL_TAB_H_ 6 #define CHROME_FRAME_EXTERNAL_TAB_H_
7 #pragma once 7 #pragma once
8 8
9 #include <windows.h> 9 #include <windows.h>
10 #include <atlbase.h> 10 #include <atlbase.h>
11 #include <atlwin.h> 11 #include <atlwin.h>
12 #include <vector> 12 #include <vector>
13 #include <string> 13 #include <string>
14 #include "base/scoped_comptr_win.h" 14 #include "base/scoped_comptr_win.h"
15 #include "base/scoped_ptr.h" 15 #include "base/scoped_ptr.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "chrome/common//page_zoom.h" 17 #include "chrome/common/automation_constants.h"
18 #include "chrome/test/automation/automation_constants.h" 18 #include "chrome/common/page_zoom.h"
19 #include "chrome_frame/cfproxy.h" 19 #include "chrome_frame/cfproxy.h"
20 #include "chrome_frame/task_marshaller.h" 20 #include "chrome_frame/task_marshaller.h"
21 #include "googleurl/src/gurl.h" 21 #include "googleurl/src/gurl.h"
22 22
23 class Task; 23 class Task;
24 class CancelableTask; 24 class CancelableTask;
25 namespace base { 25 namespace base {
26 class TimeDelta; 26 class TimeDelta;
27 class WaitableEvent; 27 class WaitableEvent;
28 } 28 }
29 29
30 namespace IPC { 30 namespace IPC {
31 struct NavigationInfo; 31 struct NavigationInfo;
32 struct ContextMenuParams; 32 struct MiniContextMenuParams;
33 } 33 }
34 34
35 // This is the delegate/callback interface that has to be implemented 35 // This is the delegate/callback interface that has to be implemented
36 // by the customers of ExternalTabProxy class. 36 // by the customers of ExternalTabProxy class.
37 class UIDelegate { 37 class UIDelegate {
38 public: 38 public:
39 virtual void OnNavigationStateChanged(int flags, 39 virtual void OnNavigationStateChanged(int flags,
40 const IPC::NavigationInfo& nav_info) = 0; 40 const IPC::NavigationInfo& nav_info) = 0;
41 virtual void OnUpdateTargetUrl(const std::wstring& new_target_url) = 0; 41 virtual void OnUpdateTargetUrl(const std::wstring& new_target_url) = 0;
42 virtual void OnExtensionInstalled(const FilePath& path, void* user_data, 42 virtual void OnExtensionInstalled(const FilePath& path, void* user_data,
43 AutomationMsg_ExtensionResponseValues response) = 0; 43 AutomationMsg_ExtensionResponseValues response) = 0;
44 virtual void OnLoad(const GURL& url) = 0; 44 virtual void OnLoad(const GURL& url) = 0;
45 virtual void OnMessageFromChromeFrame(const std::string& message, 45 virtual void OnMessageFromChromeFrame(const std::string& message,
46 const std::string& origin, const std::string& target) = 0; 46 const std::string& origin, const std::string& target) = 0;
47 virtual void OnHandleContextMenu(HANDLE menu_handle, int align_flags, 47 virtual void OnHandleContextMenu(HANDLE menu_handle, int align_flags,
48 const IPC::ContextMenuParams& params) = 0; 48 const IPC::MiniContextMenuParams& params) = 0;
49 virtual void OnHandleAccelerator(const MSG& accel_message) = 0; 49 virtual void OnHandleAccelerator(const MSG& accel_message) = 0;
50 virtual void OnTabbedOut(bool reverse) = 0; 50 virtual void OnTabbedOut(bool reverse) = 0;
51 virtual void OnGoToHistoryOffset(int offset) = 0; 51 virtual void OnGoToHistoryOffset(int offset) = 0;
52 virtual void OnOpenURL(const GURL& url_to_open, const GURL& referrer, 52 virtual void OnOpenURL(const GURL& url_to_open, const GURL& referrer,
53 int open_disposition) = 0; 53 int open_disposition) = 0;
54 protected: 54 protected:
55 ~UIDelegate() {} 55 ~UIDelegate() {}
56 }; 56 };
57 57
58 struct CreateTabParams { 58 struct CreateTabParams {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 virtual void OpenURL(const GURL& url_to_open, const GURL& referrer, 159 virtual void OpenURL(const GURL& url_to_open, const GURL& referrer,
160 int open_disposition); 160 int open_disposition);
161 virtual void GoToHistoryOffset(int offset); 161 virtual void GoToHistoryOffset(int offset);
162 virtual void MessageToHost(const std::string& message, 162 virtual void MessageToHost(const std::string& message,
163 const std::string& origin, const std::string& target); 163 const std::string& origin, const std::string& target);
164 164
165 // Misc. UI. 165 // Misc. UI.
166 virtual void HandleAccelerator(const MSG& accel_message); 166 virtual void HandleAccelerator(const MSG& accel_message);
167 virtual void HandleContextMenu(HANDLE menu_handle, int align_flags, 167 virtual void HandleContextMenu(HANDLE menu_handle, int align_flags,
168 const IPC::ContextMenuParams& params); 168 const IPC::MiniContextMenuParams& params);
169 virtual void TabbedOut(bool reverse); 169 virtual void TabbedOut(bool reverse);
170 170
171 // Other 171 // Other
172 virtual void TabClosed(); 172 virtual void TabClosed();
173 virtual void AttachTab(const IPC::AttachExternalTabParams& attach_params); 173 virtual void AttachTab(const IPC::AttachExternalTabParams& attach_params);
174 174
175 // end of ChromeProxyDelegate methods 175 // end of ChromeProxyDelegate methods
176 ////////////////////////////////////////////////////////////////////////// 176 //////////////////////////////////////////////////////////////////////////
177 void Init(); 177 void Init();
178 void Destroy(); 178 void Destroy();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 void Set(const GURL& gurl, const GURL& ref) { 216 void Set(const GURL& gurl, const GURL& ref) {
217 url = gurl; 217 url = gurl;
218 referrer = ref; 218 referrer = ref;
219 } 219 }
220 } pending_navigation_; 220 } pending_navigation_;
221 221
222 ScopedComPtr<IInternetSecurityManager> security_manager_; 222 ScopedComPtr<IInternetSecurityManager> security_manager_;
223 }; 223 };
224 224
225 #endif // CHROME_FRAME_EXTERNAL_TAB_H_ 225 #endif // CHROME_FRAME_EXTERNAL_TAB_H_
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_plugin.h ('k') | chrome_frame/external_tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698