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

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

Issue 2148463002: Remove rootWindowRect from WebWidgetClient and move it to WebViewClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 void didMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override; 237 void didMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override;
238 void didFocus() override; 238 void didFocus() override;
239 void didChangeCursor(const blink::WebCursorInfo&) override; 239 void didChangeCursor(const blink::WebCursorInfo&) override;
240 void closeWidgetSoon() override; 240 void closeWidgetSoon() override;
241 void show(blink::WebNavigationPolicy) override; 241 void show(blink::WebNavigationPolicy) override;
242 blink::WebRect windowRect() override; 242 blink::WebRect windowRect() override;
243 void setToolTipText(const blink::WebString& text, 243 void setToolTipText(const blink::WebString& text,
244 blink::WebTextDirection hint) override; 244 blink::WebTextDirection hint) override;
245 void setWindowRect(const blink::WebRect&) override; 245 void setWindowRect(const blink::WebRect&) override;
246 blink::WebRect windowResizerRect() override; 246 blink::WebRect windowResizerRect() override;
247 blink::WebRect rootWindowRect() override;
248 blink::WebScreenInfo screenInfo() override; 247 blink::WebScreenInfo screenInfo() override;
249 void resetInputMethod() override; 248 void resetInputMethod() override;
250 void didHandleGestureEvent(const blink::WebGestureEvent& event, 249 void didHandleGestureEvent(const blink::WebGestureEvent& event,
251 bool event_cancelled) override; 250 bool event_cancelled) override;
252 void didOverscroll(const blink::WebFloatSize& overscrollDelta, 251 void didOverscroll(const blink::WebFloatSize& overscrollDelta,
253 const blink::WebFloatSize& accumulatedOverscroll, 252 const blink::WebFloatSize& accumulatedOverscroll,
254 const blink::WebFloatPoint& position, 253 const blink::WebFloatPoint& position,
255 const blink::WebFloatSize& velocity) override; 254 const blink::WebFloatSize& velocity) override;
256 void showImeIfNeeded() override; 255 void showImeIfNeeded() override;
257 void convertViewportToWindow(blink::WebRect* rect) override; 256 void convertViewportToWindow(blink::WebRect* rect) override;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 // handle composition range and composition character bounds. 352 // handle composition range and composition character bounds.
354 void UpdateCompositionInfo(bool should_update_range); 353 void UpdateCompositionInfo(bool should_update_range);
355 354
356 // Change the device ICC color profile while running a layout test. 355 // Change the device ICC color profile while running a layout test.
357 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile); 356 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile);
358 void ResetDeviceColorProfileForTesting(); 357 void ResetDeviceColorProfileForTesting();
359 358
360 // Called when the Widget has changed size as a result of an auto-resize. 359 // Called when the Widget has changed size as a result of an auto-resize.
361 void DidAutoResize(const gfx::Size& new_size); 360 void DidAutoResize(const gfx::Size& new_size);
362 361
362 // Called to get the position of the root window containing the widget in
363 // screen coordinates.
364 gfx::Rect RootWindowRect();
365
363 // Indicates whether this widget has focus. 366 // Indicates whether this widget has focus.
364 bool has_focus() const { return has_focus_; } 367 bool has_focus() const { return has_focus_; }
365 368
366 MouseLockDispatcher* mouse_lock_dispatcher() { 369 MouseLockDispatcher* mouse_lock_dispatcher() {
367 return mouse_lock_dispatcher_.get(); 370 return mouse_lock_dispatcher_.get();
368 } 371 }
369 372
370 protected: 373 protected:
371 // Friend RefCounted so that the dtor can be non-public. Using this class 374 // Friend RefCounted so that the dtor can be non-public. Using this class
372 // without ref-counting is an error. 375 // without ref-counting is an error.
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 686
684 // Stores the current composition range. 687 // Stores the current composition range.
685 gfx::Range composition_range_; 688 gfx::Range composition_range_;
686 689
687 // The kind of popup this widget represents, NONE if not a popup. 690 // The kind of popup this widget represents, NONE if not a popup.
688 blink::WebPopupType popup_type_; 691 blink::WebPopupType popup_type_;
689 692
690 // While we are waiting for the browser to update window sizes, we track the 693 // While we are waiting for the browser to update window sizes, we track the
691 // pending size temporarily. 694 // pending size temporarily.
692 int pending_window_rect_count_; 695 int pending_window_rect_count_;
693 blink::WebRect pending_window_rect_; 696 gfx::Rect pending_window_rect_;
694 697
695 // The screen rects of the view and the window that contains it. 698 // The screen rects of the view and the window that contains it.
696 gfx::Rect view_screen_rect_; 699 gfx::Rect view_screen_rect_;
697 gfx::Rect window_screen_rect_; 700 gfx::Rect window_screen_rect_;
698 701
699 std::unique_ptr<RenderWidgetInputHandler> input_handler_; 702 std::unique_ptr<RenderWidgetInputHandler> input_handler_;
700 703
701 // The time spent in input handlers this frame. Used to throttle input acks. 704 // The time spent in input handlers this frame. Used to throttle input acks.
702 base::TimeDelta total_input_handling_time_this_frame_; 705 base::TimeDelta total_input_handling_time_this_frame_;
703 706
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 773
771 // Indicates whether this widget has focus. 774 // Indicates whether this widget has focus.
772 bool has_focus_; 775 bool has_focus_;
773 776
774 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 777 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
775 }; 778 };
776 779
777 } // namespace content 780 } // namespace content
778 781
779 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 782 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698