| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_NPAPI_H_ | 5 #ifndef CHROME_FRAME_CHROME_FRAME_NPAPI_H_ |
| 6 #define CHROME_FRAME_CHROME_FRAME_NPAPI_H_ | 6 #define CHROME_FRAME_CHROME_FRAME_NPAPI_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlwin.h> | 9 #include <atlwin.h> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 bool GetProperty(NPIdentifier name, NPVariant *variant); | 126 bool GetProperty(NPIdentifier name, NPVariant *variant); |
| 127 | 127 |
| 128 // Initialize string->identifier mapping, public to allow unittesting. | 128 // Initialize string->identifier mapping, public to allow unittesting. |
| 129 static void InitializeIdentifiers(); | 129 static void InitializeIdentifiers(); |
| 130 | 130 |
| 131 bool PreProcessContextMenu(HMENU menu); | 131 bool PreProcessContextMenu(HMENU menu); |
| 132 bool HandleContextMenuCommand(UINT cmd, const MiniContextMenuParams& params); | 132 bool HandleContextMenuCommand(UINT cmd, const MiniContextMenuParams& params); |
| 133 protected: | 133 protected: |
| 134 // Handler for accelerator messages passed on from the hosted chrome | 134 // Handler for accelerator messages passed on from the hosted chrome |
| 135 // instance. | 135 // instance. |
| 136 virtual void OnAcceleratorPressed(int tab_handle, const MSG& accel_message); | 136 virtual void OnAcceleratorPressed(const MSG& accel_message); |
| 137 virtual void OnTabbedOut(int tab_handle, bool reverse); | 137 virtual void OnTabbedOut(bool reverse); |
| 138 virtual void OnOpenURL(int tab_handle, const GURL& url, | 138 virtual void OnOpenURL(const GURL& url, const GURL& referrer, |
| 139 const GURL& referrer, int open_disposition); | 139 int open_disposition); |
| 140 virtual void OnLoad(int tab_handle, const GURL& url); | 140 virtual void OnLoad(const GURL& url); |
| 141 virtual void OnMessageFromChromeFrame(int tab_handle, | 141 virtual void OnMessageFromChromeFrame(const std::string& message, |
| 142 const std::string& message, | |
| 143 const std::string& origin, | 142 const std::string& origin, |
| 144 const std::string& target); | 143 const std::string& target); |
| 145 // ChromeFrameDelegate overrides | 144 // ChromeFrameDelegate overrides |
| 146 virtual void OnLoadFailed(int error_code, const std::string& url); | 145 virtual void OnLoadFailed(int error_code, const std::string& url); |
| 147 virtual void OnAutomationServerReady(); | 146 virtual void OnAutomationServerReady(); |
| 148 virtual void OnAutomationServerLaunchFailed( | 147 virtual void OnAutomationServerLaunchFailed( |
| 149 AutomationLaunchResult reason, const std::string& server_version); | 148 AutomationLaunchResult reason, const std::string& server_version); |
| 150 virtual void OnExtensionInstalled(const FilePath& path, | 149 virtual void OnExtensionInstalled(const FilePath& path, |
| 151 void* user_data, AutomationMsg_ExtensionResponseValues response); | 150 void* user_data, AutomationMsg_ExtensionResponseValues response); |
| 152 virtual void OnGetEnabledExtensionsComplete( | 151 virtual void OnGetEnabledExtensionsComplete( |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 // The value of src property keeping the current URL. | 344 // The value of src property keeping the current URL. |
| 346 std::string src_; | 345 std::string src_; |
| 347 // Used to fetch network resources when host network stack is in use. | 346 // Used to fetch network resources when host network stack is in use. |
| 348 NPAPIUrlRequestManager url_fetcher_; | 347 NPAPIUrlRequestManager url_fetcher_; |
| 349 | 348 |
| 350 // Set if we receive a navigation request before initializing Chrome. | 349 // Set if we receive a navigation request before initializing Chrome. |
| 351 bool navigate_after_initialization_; | 350 bool navigate_after_initialization_; |
| 352 }; | 351 }; |
| 353 | 352 |
| 354 #endif // CHROME_FRAME_CHROME_FRAME_NPAPI_H_ | 353 #endif // CHROME_FRAME_CHROME_FRAME_NPAPI_H_ |
| OLD | NEW |