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

Side by Side Diff: chrome_frame/chrome_frame_npapi.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_delegate.h ('k') | chrome_frame/chrome_frame_npapi.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) 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 // Implementation of SetProperty, public to allow unittesting. 122 // Implementation of SetProperty, public to allow unittesting.
123 bool SetProperty(NPIdentifier name, const NPVariant *variant); 123 bool SetProperty(NPIdentifier name, const NPVariant *variant);
124 // Implementation of GetProperty, public to allow unittesting. 124 // Implementation of GetProperty, public to allow unittesting.
125 bool GetProperty(NPIdentifier name, NPVariant *variant); 125 bool GetProperty(NPIdentifier name, NPVariant *variant);
126 126
127 // Initialize string->identifier mapping, public to allow unittesting. 127 // Initialize string->identifier mapping, public to allow unittesting.
128 static void InitializeIdentifiers(); 128 static void InitializeIdentifiers();
129 129
130 bool PreProcessContextMenu(HMENU menu); 130 bool PreProcessContextMenu(HMENU menu);
131 bool HandleContextMenuCommand(UINT cmd, const IPC::ContextMenuParams& params); 131 bool HandleContextMenuCommand(UINT cmd,
132 const IPC::MiniContextMenuParams& params);
132 protected: 133 protected:
133 // Handler for accelerator messages passed on from the hosted chrome 134 // Handler for accelerator messages passed on from the hosted chrome
134 // instance. 135 // instance.
135 virtual void OnAcceleratorPressed(int tab_handle, const MSG& accel_message); 136 virtual void OnAcceleratorPressed(int tab_handle, const MSG& accel_message);
136 virtual void OnTabbedOut(int tab_handle, bool reverse); 137 virtual void OnTabbedOut(int tab_handle, bool reverse);
137 virtual void OnOpenURL(int tab_handle, const GURL& url, 138 virtual void OnOpenURL(int tab_handle, const GURL& url,
138 const GURL& referrer, int open_disposition); 139 const GURL& referrer, int open_disposition);
139 virtual void OnLoad(int tab_handle, const GURL& url); 140 virtual void OnLoad(int tab_handle, const GURL& url);
140 virtual void OnMessageFromChromeFrame(int tab_handle, 141 virtual void OnMessageFromChromeFrame(int tab_handle,
141 const std::string& message, 142 const std::string& message,
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 // The value of src property keeping the current URL. 345 // The value of src property keeping the current URL.
345 std::string src_; 346 std::string src_;
346 // Used to fetch network resources when host network stack is in use. 347 // Used to fetch network resources when host network stack is in use.
347 NPAPIUrlRequestManager url_fetcher_; 348 NPAPIUrlRequestManager url_fetcher_;
348 349
349 // Set if we receive a navigation request before initializing Chrome. 350 // Set if we receive a navigation request before initializing Chrome.
350 bool navigate_after_initialization_; 351 bool navigate_after_initialization_;
351 }; 352 };
352 353
353 #endif // CHROME_FRAME_CHROME_FRAME_NPAPI_H_ 354 #endif // CHROME_FRAME_CHROME_FRAME_NPAPI_H_
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_delegate.h ('k') | chrome_frame/chrome_frame_npapi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698