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

Side by Side Diff: chrome_frame/chrome_frame_activex.h

Issue 4563001: Adding a privileged callback used in IE CF to check whether to show... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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.gyp ('k') | chrome_frame/chrome_frame_activex.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_CHROME_FRAME_ACTIVEX_H_ 5 #ifndef CHROME_FRAME_CHROME_FRAME_ACTIVEX_H_
6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_H_ 6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcom.h> 9 #include <atlcom.h>
10 #include <atlctl.h> 10 #include <atlctl.h>
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual void OnLoadFailed(int error_code, const std::string& url); 97 virtual void OnLoadFailed(int error_code, const std::string& url);
98 virtual void OnAutomationServerLaunchFailed( 98 virtual void OnAutomationServerLaunchFailed(
99 AutomationLaunchResult reason, const std::string& server_version); 99 AutomationLaunchResult reason, const std::string& server_version);
100 virtual void OnExtensionInstalled(const FilePath& path, 100 virtual void OnExtensionInstalled(const FilePath& path,
101 void* user_data, AutomationMsg_ExtensionResponseValues response); 101 void* user_data, AutomationMsg_ExtensionResponseValues response);
102 virtual void OnGetEnabledExtensionsComplete( 102 virtual void OnGetEnabledExtensionsComplete(
103 void* user_data, 103 void* user_data,
104 const std::vector<FilePath>& extension_directories); 104 const std::vector<FilePath>& extension_directories);
105 virtual void OnChannelError(); 105 virtual void OnChannelError();
106 106
107 // Separated to static function for unit testing this logic more easily.
108 static bool ShouldShowVersionMismatchDialog(bool is_privileged,
109 IOleClientSite* client_site);
110
107 private: 111 private:
108 LRESULT OnCreate(UINT message, WPARAM wparam, LPARAM lparam, 112 LRESULT OnCreate(UINT message, WPARAM wparam, LPARAM lparam,
109 BOOL& handled); // NO_LINT 113 BOOL& handled); // NO_LINT
110 LRESULT OnHostMoved(UINT message, WPARAM wparam, LPARAM lparam, 114 LRESULT OnHostMoved(UINT message, WPARAM wparam, LPARAM lparam,
111 BOOL& handled); // NO_LINT 115 BOOL& handled); // NO_LINT
112 116
113 HRESULT GetContainingDocument(IHTMLDocument2** doc); 117 HRESULT GetContainingDocument(IHTMLDocument2** doc);
114 HRESULT GetDocumentWindow(IHTMLWindow2** window); 118 HRESULT GetDocumentWindow(IHTMLWindow2** window);
115 119
116 // Gets the value of the 'id' attribute of the object element. 120 // Gets the value of the 'id' attribute of the object element.
(...skipping 21 matching lines...) Expand all
138 BSTR target); 142 BSTR target);
139 143
140 // Installs a hook on the top-level window hosting the control. 144 // Installs a hook on the top-level window hosting the control.
141 HRESULT InstallTopLevelHook(IOleClientSite* client_site); 145 HRESULT InstallTopLevelHook(IOleClientSite* client_site);
142 146
143 // A hook attached to the top-level window containing the ActiveX control. 147 // A hook attached to the top-level window containing the ActiveX control.
144 HHOOK chrome_wndproc_hook_; 148 HHOOK chrome_wndproc_hook_;
145 }; 149 };
146 150
147 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_H_ 151 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_H_
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame.gyp ('k') | chrome_frame/chrome_frame_activex.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698