OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_RENDERER_RENDER_VIEW_H__ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H__ |
6 #define CHROME_RENDERER_RENDER_VIEW_H__ | 6 #define CHROME_RENDERER_RENDER_VIEW_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 // keyword for a provider described in the given OpenSearch document. | 263 // keyword for a provider described in the given OpenSearch document. |
264 void AddSearchProvider(const std::string& url); | 264 void AddSearchProvider(const std::string& url); |
265 | 265 |
266 // Asks the browser for the CPBrowsingContext associated with this renderer. | 266 // Asks the browser for the CPBrowsingContext associated with this renderer. |
267 uint32 GetCPBrowsingContext(); | 267 uint32 GetCPBrowsingContext(); |
268 | 268 |
269 // Dispatches the current navigation state to the browser. Called on a | 269 // Dispatches the current navigation state to the browser. Called on a |
270 // periodic timer so we don't send too many messages. | 270 // periodic timer so we don't send too many messages. |
271 void SyncNavigationState(); | 271 void SyncNavigationState(); |
272 | 272 |
273 // Evaluates a javascript: URL | 273 // Evaluates javascript in the specified frame |
274 void EvaluateScriptUrl(const std::wstring& frame_xpath, | 274 void EvaluateScript(const std::wstring& frame_xpath, |
275 const std::wstring& jscript); | 275 const std::wstring& script, |
| 276 const std::wstring& url); |
276 | 277 |
277 // Called when the Javascript debugger is no longer attached. | 278 // Called when the Javascript debugger is no longer attached. |
278 // This is called from within the renderer, not via an IPC message. | 279 // This is called from within the renderer, not via an IPC message. |
279 void OnDebugDetach(); | 280 void OnDebugDetach(); |
280 | 281 |
281 private: | 282 private: |
282 RenderView(); | 283 RenderView(); |
283 | 284 |
284 // When we are created from window.open from an already existing view, this | 285 // When we are created from window.open from an already existing view, this |
285 // constructor stores that view ID. | 286 // constructor stores that view ID. |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 void OnSetDOMUIProperty(const std::string& name, const std::string& value); | 397 void OnSetDOMUIProperty(const std::string& name, const std::string& value); |
397 void OnSetInitialFocus(bool reverse); | 398 void OnSetInitialFocus(bool reverse); |
398 void OnUpdateWebPreferences(const WebPreferences& prefs); | 399 void OnUpdateWebPreferences(const WebPreferences& prefs); |
399 void OnSetAltErrorPageURL(const GURL& gurl); | 400 void OnSetAltErrorPageURL(const GURL& gurl); |
400 | 401 |
401 void OnDownloadImage(int id, const GURL& image_url, int image_size); | 402 void OnDownloadImage(int id, const GURL& image_url, int image_size); |
402 | 403 |
403 void OnGetApplicationInfo(int page_id); | 404 void OnGetApplicationInfo(int page_id); |
404 | 405 |
405 void OnScriptEvalRequest(const std::wstring& frame_xpath, | 406 void OnScriptEvalRequest(const std::wstring& frame_xpath, |
406 const std::wstring& jscript); | 407 const std::wstring& jscript, |
| 408 const std::wstring& filename); |
407 void OnAddMessageToConsole(const std::wstring& frame_xpath, | 409 void OnAddMessageToConsole(const std::wstring& frame_xpath, |
408 const std::wstring& msg, | 410 const std::wstring& msg, |
409 ConsoleMessageLevel level); | 411 ConsoleMessageLevel level); |
410 void OnDebugAttach(); | 412 void OnDebugAttach(); |
411 | 413 |
412 void OnReservePageIDRange(int size_of_range); | 414 void OnReservePageIDRange(int size_of_range); |
413 | 415 |
414 void OnDragSourceEndedOrMoved( | 416 void OnDragSourceEndedOrMoved( |
415 int client_x, int client_y, int screen_x, int screen_y, bool ended); | 417 int client_x, int client_y, int screen_x, int screen_y, bool ended); |
416 void OnDragSourceSystemDragEnded(); | 418 void OnDragSourceSystemDragEnded(); |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 bool has_unload_listener_; | 619 bool has_unload_listener_; |
618 | 620 |
619 // Handles accessibility requests into the renderer side, as well as | 621 // Handles accessibility requests into the renderer side, as well as |
620 // maintains the cache and other features of the accessibility tree. | 622 // maintains the cache and other features of the accessibility tree. |
621 scoped_ptr<GlueAccessibility> glue_accessibility_; | 623 scoped_ptr<GlueAccessibility> glue_accessibility_; |
622 | 624 |
623 DISALLOW_EVIL_CONSTRUCTORS(RenderView); | 625 DISALLOW_EVIL_CONSTRUCTORS(RenderView); |
624 }; | 626 }; |
625 | 627 |
626 #endif // CHROME_RENDERER_RENDER_VIEW_H__ | 628 #endif // CHROME_RENDERER_RENDER_VIEW_H__ |
OLD | NEW |