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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 // Initialize string->identifier mapping, public to allow unittesting. | 126 // Initialize string->identifier mapping, public to allow unittesting. |
127 static void InitializeIdentifiers(); | 127 static void InitializeIdentifiers(); |
128 | 128 |
129 bool HandleContextMenuCommand(UINT cmd, const IPC::ContextMenuParams& params); | 129 bool HandleContextMenuCommand(UINT cmd, const IPC::ContextMenuParams& params); |
130 protected: | 130 protected: |
131 // Handler for accelerator messages passed on from the hosted chrome | 131 // Handler for accelerator messages passed on from the hosted chrome |
132 // instance. | 132 // instance. |
133 virtual void OnAcceleratorPressed(int tab_handle, const MSG& accel_message); | 133 virtual void OnAcceleratorPressed(int tab_handle, const MSG& accel_message); |
134 virtual void OnTabbedOut(int tab_handle, bool reverse); | 134 virtual void OnTabbedOut(int tab_handle, bool reverse); |
135 virtual void OnOpenURL(int tab_handle, const GURL& url, int open_disposition); | 135 virtual void OnOpenURL(int tab_handle, const GURL& url, |
| 136 const GURL& referrer, int open_disposition); |
136 virtual void OnLoad(int tab_handle, const GURL& url); | 137 virtual void OnLoad(int tab_handle, const GURL& url); |
137 virtual void OnMessageFromChromeFrame(int tab_handle, | 138 virtual void OnMessageFromChromeFrame(int tab_handle, |
138 const std::string& message, | 139 const std::string& message, |
139 const std::string& origin, | 140 const std::string& origin, |
140 const std::string& target); | 141 const std::string& target); |
141 // ChromeFrameDelegate overrides | 142 // ChromeFrameDelegate overrides |
142 virtual void OnLoadFailed(int error_code, const std::string& url); | 143 virtual void OnLoadFailed(int error_code, const std::string& url); |
143 virtual void OnAutomationServerReady(); | 144 virtual void OnAutomationServerReady(); |
144 virtual void OnAutomationServerLaunchFailed( | 145 virtual void OnAutomationServerLaunchFailed( |
145 AutomationLaunchResult reason, const std::string& server_version); | 146 AutomationLaunchResult reason, const std::string& server_version); |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 // The value of src property keeping the current URL. | 340 // The value of src property keeping the current URL. |
340 std::string src_; | 341 std::string src_; |
341 // Used to fetch network resources when host network stack is in use. | 342 // Used to fetch network resources when host network stack is in use. |
342 NPAPIUrlRequestManager url_fetcher_; | 343 NPAPIUrlRequestManager url_fetcher_; |
343 | 344 |
344 // Set if we receive a navigation request before initializing Chrome. | 345 // Set if we receive a navigation request before initializing Chrome. |
345 bool navigate_after_initialization_; | 346 bool navigate_after_initialization_; |
346 }; | 347 }; |
347 | 348 |
348 #endif // CHROME_FRAME_CHROME_FRAME_NPAPI_H_ | 349 #endif // CHROME_FRAME_CHROME_FRAME_NPAPI_H_ |
OLD | NEW |