| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 int32 width, | 373 int32 width, |
| 374 int32 height, | 374 int32 height, |
| 375 TransportDIB::Handle transport_dib); | 375 TransportDIB::Handle transport_dib); |
| 376 void AcceleratedSurfaceBuffersSwapped(gfx::PluginWindowHandle window, | 376 void AcceleratedSurfaceBuffersSwapped(gfx::PluginWindowHandle window, |
| 377 uint64 surface_id); | 377 uint64 surface_id); |
| 378 #endif | 378 #endif |
| 379 | 379 |
| 380 void RegisterPluginDelegate(WebPluginDelegateProxy* delegate); | 380 void RegisterPluginDelegate(WebPluginDelegateProxy* delegate); |
| 381 void UnregisterPluginDelegate(WebPluginDelegateProxy* delegate); | 381 void UnregisterPluginDelegate(WebPluginDelegateProxy* delegate); |
| 382 | 382 |
| 383 // Respond to a zoom request from the browser process |
| 384 void zoomLevelChanged(int request_id); |
| 385 |
| 383 // IPC::Channel::Listener implementation ------------------------------------- | 386 // IPC::Channel::Listener implementation ------------------------------------- |
| 384 | 387 |
| 385 virtual bool OnMessageReceived(const IPC::Message& msg); | 388 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 386 | 389 |
| 387 // WebKit::WebWidgetClient implementation ------------------------------------ | 390 // WebKit::WebWidgetClient implementation ------------------------------------ |
| 388 | 391 |
| 389 // Most methods are handled by RenderWidget. | 392 // Most methods are handled by RenderWidget. |
| 390 virtual void didFocus(); | 393 virtual void didFocus(); |
| 391 virtual void didBlur(); | 394 virtual void didBlur(); |
| 392 virtual void show(WebKit::WebNavigationPolicy policy); | 395 virtual void show(WebKit::WebNavigationPolicy policy); |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 931 void OnSetDOMUIProperty(const std::string& name, const std::string& value); | 934 void OnSetDOMUIProperty(const std::string& name, const std::string& value); |
| 932 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); | 935 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); |
| 933 void OnSetInitialFocus(bool reverse); | 936 void OnSetInitialFocus(bool reverse); |
| 934 void OnScrollFocusedEditableNodeIntoView(); | 937 void OnScrollFocusedEditableNodeIntoView(); |
| 935 void OnSetPageEncoding(const std::string& encoding_name); | 938 void OnSetPageEncoding(const std::string& encoding_name); |
| 936 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 939 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
| 937 void OnSetupDevToolsClient(); | 940 void OnSetupDevToolsClient(); |
| 938 #if defined(OS_MACOSX) | 941 #if defined(OS_MACOSX) |
| 939 void OnSetWindowVisibility(bool visible); | 942 void OnSetWindowVisibility(bool visible); |
| 940 #endif | 943 #endif |
| 941 void OnSetZoomLevel(double zoom_level); | 944 void OnSetZoomLevel(int request_id, double zoom_level); |
| 942 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); | 945 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); |
| 943 void OnShouldClose(); | 946 void OnShouldClose(); |
| 944 void OnStop(); | 947 void OnStop(); |
| 945 void OnStopFinding(const ViewMsg_StopFinding_Params& params); | 948 void OnStopFinding(const ViewMsg_StopFinding_Params& params); |
| 946 void OnThemeChanged(); | 949 void OnThemeChanged(); |
| 947 void OnToggleSpellCheck(); | 950 void OnToggleSpellCheck(); |
| 948 void OnToggleSpellPanel(bool is_currently_visible); | 951 void OnToggleSpellPanel(bool is_currently_visible); |
| 949 void OnUndo(); | 952 void OnUndo(); |
| 950 void OnUpdateBrowserWindowId(int window_id); | 953 void OnUpdateBrowserWindowId(int window_id); |
| 951 void OnUpdateTargetURLAck(); | 954 void OnUpdateTargetURLAck(); |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1476 // bunch of stuff, you should probably create a helper class and put your | 1479 // bunch of stuff, you should probably create a helper class and put your |
| 1477 // data and methods on that to avoid bloating RenderView more. You can use | 1480 // data and methods on that to avoid bloating RenderView more. You can use |
| 1478 // the Observer interface to filter IPC messages and receive frame change | 1481 // the Observer interface to filter IPC messages and receive frame change |
| 1479 // notifications. | 1482 // notifications. |
| 1480 // --------------------------------------------------------------------------- | 1483 // --------------------------------------------------------------------------- |
| 1481 | 1484 |
| 1482 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1485 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 1483 }; | 1486 }; |
| 1484 | 1487 |
| 1485 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1488 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |