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

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: . 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 numHandlers);
jam 2011/08/12 17:32:26 nit: num_handlers
Nico 2011/08/12 17:37:50 Done.
563 virtual void didChangeContentsSize(WebKit::WebFrame*, const WebKit::WebSize&);
jam 2011/08/12 17:32:26 chrome style is to always name the parameters in t
Nico 2011/08/12 17:37:50 Done.
562 virtual void reportFindInPageMatchCount(int request_id, 564 virtual void reportFindInPageMatchCount(int request_id,
563 int count, 565 int count,
564 bool final_update); 566 bool final_update);
565 virtual void reportFindInPageSelection(int request_id, 567 virtual void reportFindInPageSelection(int request_id,
566 int active_match_ordinal, 568 int active_match_ordinal,
567 const WebKit::WebRect& sel); 569 const WebKit::WebRect& sel);
568 570
569 virtual void openFileSystem(WebKit::WebFrame* frame, 571 virtual void openFileSystem(WebKit::WebFrame* frame,
570 WebKit::WebFileSystem::Type type, 572 WebKit::WebFileSystem::Type type,
571 long long size, 573 long long size,
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 const string16& default_value, 727 const string16& default_value,
726 const GURL& frame_url, 728 const GURL& frame_url,
727 string16* result); 729 string16* result);
728 730
729 // Sends a message and runs a nested message loop. 731 // Sends a message and runs a nested message loop.
730 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); 732 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message);
731 733
732 // Send queued accessibility notifications from the renderer to the browser. 734 // Send queued accessibility notifications from the renderer to the browser.
733 void SendPendingAccessibilityNotifications(); 735 void SendPendingAccessibilityNotifications();
734 736
737 // Called when the "pinned to left/right edge" state needs to be updated.
738 void updateScrollState(WebKit::WebFrame* frame);
jam 2011/08/12 17:32:26 chrome style is UpdateScrollState
Nico 2011/08/12 17:37:50 Done.
739
735 // IPC message handlers ------------------------------------------------------ 740 // IPC message handlers ------------------------------------------------------
736 // 741 //
737 // The documentation for these functions should be in 742 // The documentation for these functions should be in
738 // render_messages_internal.h for the message that the function is handling. 743 // render_messages_internal.h for the message that the function is handling.
739 744
740 void OnAccessibilityDoDefaultAction(int acc_obj_id); 745 void OnAccessibilityDoDefaultAction(int acc_obj_id);
741 void OnAccessibilityNotificationsAck(); 746 void OnAccessibilityNotificationsAck();
742 void OnAllowBindings(int enabled_bindings_flags); 747 void OnAllowBindings(int enabled_bindings_flags);
743 void OnAllowScriptToClose(bool script_can_close); 748 void OnAllowScriptToClose(bool script_can_close);
744 void OnAsyncFileOpened(base::PlatformFileError error_code, 749 void OnAsyncFileOpened(base::PlatformFileError error_code,
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 // View ---------------------------------------------------------------------- 1082 // View ----------------------------------------------------------------------
1078 1083
1079 // Cache the preferred size of the page in order to prevent sending the IPC 1084 // Cache the preferred size of the page in order to prevent sending the IPC
1080 // when layout() recomputes but doesn't actually change sizes. 1085 // when layout() recomputes but doesn't actually change sizes.
1081 gfx::Size preferred_size_; 1086 gfx::Size preferred_size_;
1082 1087
1083 // Used to delay determining the preferred size (to avoid intermediate 1088 // Used to delay determining the preferred size (to avoid intermediate
1084 // states for the sizes). 1089 // states for the sizes).
1085 base::OneShotTimer<RenderView> check_preferred_size_timer_; 1090 base::OneShotTimer<RenderView> check_preferred_size_timer_;
1086 1091
1092 // These store the "is main frame is scrolled all the way to the left
1093 // or right" state that was last sent to the browser.
1094 bool cached_is_main_frame_pinned_to_left_;
1095 bool cached_is_main_frame_pinned_to_right_;
1096
1097 // These store the "has scrollbars" state last sent to the browser.
1098 bool cached_has_main_frame_horizontal_scrollbar_;
1099 bool cached_has_main_frame_vertical_scrollbar_;
1100
1087 #if defined(OS_MACOSX) 1101 #if defined(OS_MACOSX)
1088 // Track the fake plugin window handles allocated on the browser side for 1102 // Track the fake plugin window handles allocated on the browser side for
1089 // the accelerated compositor and (currently) accelerated plugins so that 1103 // the accelerated compositor and (currently) accelerated plugins so that
1090 // we can discard them when the view goes away. 1104 // we can discard them when the view goes away.
1091 std::set<gfx::PluginWindowHandle> fake_plugin_window_handles_; 1105 std::set<gfx::PluginWindowHandle> fake_plugin_window_handles_;
1092 #endif 1106 #endif
1093 1107
1094 // Plugins ------------------------------------------------------------------- 1108 // Plugins -------------------------------------------------------------------
1095 1109
1096 // Remember the first uninstalled plugin, so that we can ask the plugin 1110 // 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 1224 // 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 1225 // 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 1226 // the Observer interface to filter IPC messages and receive frame change
1213 // notifications. 1227 // notifications.
1214 // --------------------------------------------------------------------------- 1228 // ---------------------------------------------------------------------------
1215 1229
1216 DISALLOW_COPY_AND_ASSIGN(RenderView); 1230 DISALLOW_COPY_AND_ASSIGN(RenderView);
1217 }; 1231 };
1218 1232
1219 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ 1233 #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