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

Side by Side Diff: content/renderer/render_view.h

Issue 7635011: Pipe "is pinned to left/right", "has horizontal/vertical scrollbar", (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: rebase Created 9 years, 4 months 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 | « content/common/view_messages.h ('k') | content/renderer/render_view.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) 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 CONTENT_RENDERER_RENDER_VIEW_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_H_ 6 #define CONTENT_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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 virtual void didDestroyScriptContext(WebKit::WebFrame* frame); 552 virtual void didDestroyScriptContext(WebKit::WebFrame* frame);
553 virtual void didCreateIsolatedScriptContext(WebKit::WebFrame* frame); 553 virtual void didCreateIsolatedScriptContext(WebKit::WebFrame* frame);
554 virtual void logCrossFramePropertyAccess( 554 virtual void logCrossFramePropertyAccess(
555 WebKit::WebFrame* frame, 555 WebKit::WebFrame* frame,
556 WebKit::WebFrame* target, 556 WebKit::WebFrame* target,
557 bool cross_origin, 557 bool cross_origin,
558 const WebKit::WebString& property_name, 558 const WebKit::WebString& property_name,
559 unsigned long long event_id); 559 unsigned long long event_id);
560 virtual void didUpdateLayout(WebKit::WebFrame* frame); 560 virtual void didUpdateLayout(WebKit::WebFrame* frame);
561 virtual void didChangeScrollOffset(WebKit::WebFrame* frame); 561 virtual void didChangeScrollOffset(WebKit::WebFrame* frame);
562 virtual void numberOfWheelEventHandlersChanged(unsigned num_handlers);
563 virtual void didChangeContentsSize(WebKit::WebFrame* frame,
564 const WebKit::WebSize& size);
562 virtual void reportFindInPageMatchCount(int request_id, 565 virtual void reportFindInPageMatchCount(int request_id,
563 int count, 566 int count,
564 bool final_update); 567 bool final_update);
565 virtual void reportFindInPageSelection(int request_id, 568 virtual void reportFindInPageSelection(int request_id,
566 int active_match_ordinal, 569 int active_match_ordinal,
567 const WebKit::WebRect& sel); 570 const WebKit::WebRect& sel);
568 571
569 virtual void openFileSystem(WebKit::WebFrame* frame, 572 virtual void openFileSystem(WebKit::WebFrame* frame,
570 WebKit::WebFileSystem::Type type, 573 WebKit::WebFileSystem::Type type,
571 long long size, 574 long long size,
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 const string16& default_value, 728 const string16& default_value,
726 const GURL& frame_url, 729 const GURL& frame_url,
727 string16* result); 730 string16* result);
728 731
729 // Sends a message and runs a nested message loop. 732 // Sends a message and runs a nested message loop.
730 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); 733 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message);
731 734
732 // Send queued accessibility notifications from the renderer to the browser. 735 // Send queued accessibility notifications from the renderer to the browser.
733 void SendPendingAccessibilityNotifications(); 736 void SendPendingAccessibilityNotifications();
734 737
738 // Called when the "pinned to left/right edge" state needs to be updated.
739 void UpdateScrollState(WebKit::WebFrame* frame);
740
735 // IPC message handlers ------------------------------------------------------ 741 // IPC message handlers ------------------------------------------------------
736 // 742 //
737 // The documentation for these functions should be in 743 // The documentation for these functions should be in
738 // render_messages_internal.h for the message that the function is handling. 744 // render_messages_internal.h for the message that the function is handling.
739 745
740 void OnAccessibilityDoDefaultAction(int acc_obj_id); 746 void OnAccessibilityDoDefaultAction(int acc_obj_id);
741 void OnAccessibilityNotificationsAck(); 747 void OnAccessibilityNotificationsAck();
742 void OnAllowBindings(int enabled_bindings_flags); 748 void OnAllowBindings(int enabled_bindings_flags);
743 void OnAllowScriptToClose(bool script_can_close); 749 void OnAllowScriptToClose(bool script_can_close);
744 void OnAsyncFileOpened(base::PlatformFileError error_code, 750 void OnAsyncFileOpened(base::PlatformFileError error_code,
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 // View ---------------------------------------------------------------------- 1083 // View ----------------------------------------------------------------------
1078 1084
1079 // Cache the preferred size of the page in order to prevent sending the IPC 1085 // Cache the preferred size of the page in order to prevent sending the IPC
1080 // when layout() recomputes but doesn't actually change sizes. 1086 // when layout() recomputes but doesn't actually change sizes.
1081 gfx::Size preferred_size_; 1087 gfx::Size preferred_size_;
1082 1088
1083 // Used to delay determining the preferred size (to avoid intermediate 1089 // Used to delay determining the preferred size (to avoid intermediate
1084 // states for the sizes). 1090 // states for the sizes).
1085 base::OneShotTimer<RenderView> check_preferred_size_timer_; 1091 base::OneShotTimer<RenderView> check_preferred_size_timer_;
1086 1092
1093 // These store the "is main frame is scrolled all the way to the left
1094 // or right" state that was last sent to the browser.
1095 bool cached_is_main_frame_pinned_to_left_;
1096 bool cached_is_main_frame_pinned_to_right_;
1097
1098 // These store the "has scrollbars" state last sent to the browser.
1099 bool cached_has_main_frame_horizontal_scrollbar_;
1100 bool cached_has_main_frame_vertical_scrollbar_;
1101
1087 #if defined(OS_MACOSX) 1102 #if defined(OS_MACOSX)
1088 // Track the fake plugin window handles allocated on the browser side for 1103 // Track the fake plugin window handles allocated on the browser side for
1089 // the accelerated compositor and (currently) accelerated plugins so that 1104 // the accelerated compositor and (currently) accelerated plugins so that
1090 // we can discard them when the view goes away. 1105 // we can discard them when the view goes away.
1091 std::set<gfx::PluginWindowHandle> fake_plugin_window_handles_; 1106 std::set<gfx::PluginWindowHandle> fake_plugin_window_handles_;
1092 #endif 1107 #endif
1093 1108
1094 // Plugins ------------------------------------------------------------------- 1109 // Plugins -------------------------------------------------------------------
1095 1110
1096 // Remember the first uninstalled plugin, so that we can ask the plugin 1111 // Remember the first uninstalled plugin, so that we can ask the plugin
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 // bunch of stuff, you should probably create a helper class and put your 1225 // bunch of stuff, you should probably create a helper class and put your
1211 // data and methods on that to avoid bloating RenderView more. You can use 1226 // data and methods on that to avoid bloating RenderView more. You can use
1212 // the Observer interface to filter IPC messages and receive frame change 1227 // the Observer interface to filter IPC messages and receive frame change
1213 // notifications. 1228 // notifications.
1214 // --------------------------------------------------------------------------- 1229 // ---------------------------------------------------------------------------
1215 1230
1216 DISALLOW_COPY_AND_ASSIGN(RenderView); 1231 DISALLOW_COPY_AND_ASSIGN(RenderView);
1217 }; 1232 };
1218 1233
1219 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ 1234 #endif // CONTENT_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698