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

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

Issue 2333353002: Don't set view_screen_rect_ on RequestMove ACK (Closed)
Patch Set: Rebase Created 4 years, 2 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 const gfx::Rect& window_screen_rect) override; 258 const gfx::Rect& window_screen_rect) override;
259 259
260 // blink::WebWidgetClient 260 // blink::WebWidgetClient
261 void initializeLayerTreeView() override; 261 void initializeLayerTreeView() override;
262 blink::WebLayerTreeView* layerTreeView() override; 262 blink::WebLayerTreeView* layerTreeView() override;
263 void didMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override; 263 void didMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override;
264 void didChangeCursor(const blink::WebCursorInfo&) override; 264 void didChangeCursor(const blink::WebCursorInfo&) override;
265 void closeWidgetSoon() override; 265 void closeWidgetSoon() override;
266 void show(blink::WebNavigationPolicy) override; 266 void show(blink::WebNavigationPolicy) override;
267 blink::WebRect windowRect() override; 267 blink::WebRect windowRect() override;
268 blink::WebRect viewRect() override;
268 void setToolTipText(const blink::WebString& text, 269 void setToolTipText(const blink::WebString& text,
269 blink::WebTextDirection hint) override; 270 blink::WebTextDirection hint) override;
270 void setWindowRect(const blink::WebRect&) override; 271 void setWindowRect(const blink::WebRect&) override;
271 blink::WebRect windowResizerRect() override; 272 blink::WebRect windowResizerRect() override;
272 blink::WebScreenInfo screenInfo() override; 273 blink::WebScreenInfo screenInfo() override;
273 void resetInputMethod() override; 274 void resetInputMethod() override;
274 void didHandleGestureEvent(const blink::WebGestureEvent& event, 275 void didHandleGestureEvent(const blink::WebGestureEvent& event,
275 bool event_cancelled) override; 276 bool event_cancelled) override;
276 void didOverscroll(const blink::WebFloatSize& overscrollDelta, 277 void didOverscroll(const blink::WebFloatSize& overscrollDelta,
277 const blink::WebFloatSize& accumulatedOverscroll, 278 const blink::WebFloatSize& accumulatedOverscroll,
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // If immediate_request is true, render sends the latest composition info to 379 // If immediate_request is true, render sends the latest composition info to
379 // the browser even if the composition info is not changed. 380 // the browser even if the composition info is not changed.
380 void UpdateCompositionInfo(bool immediate_request); 381 void UpdateCompositionInfo(bool immediate_request);
381 382
382 // Change the device ICC color profile while running a layout test. 383 // Change the device ICC color profile while running a layout test.
383 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile); 384 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile);
384 385
385 // Called when the Widget has changed size as a result of an auto-resize. 386 // Called when the Widget has changed size as a result of an auto-resize.
386 void DidAutoResize(const gfx::Size& new_size); 387 void DidAutoResize(const gfx::Size& new_size);
387 388
388 // Called to get the position of the root window containing the widget in
389 // screen coordinates.
390 gfx::Rect RootWindowRect();
391
392 // Indicates whether this widget has focus. 389 // Indicates whether this widget has focus.
393 bool has_focus() const { return has_focus_; } 390 bool has_focus() const { return has_focus_; }
394 391
395 MouseLockDispatcher* mouse_lock_dispatcher() { 392 MouseLockDispatcher* mouse_lock_dispatcher() {
396 return mouse_lock_dispatcher_.get(); 393 return mouse_lock_dispatcher_.get();
397 } 394 }
398 395
399 // TODO(ekaramad): The reference to the focused pepper plugin will be removed 396 // TODO(ekaramad): The reference to the focused pepper plugin will be removed
400 // from RenderWidget. The purpose of having the reference here was to make IME 397 // from RenderWidget. The purpose of having the reference here was to make IME
401 // work for OOPIF (https://crbug.com/643727). 398 // work for OOPIF (https://crbug.com/643727).
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 // Stores edit commands associated to the next key event. 830 // Stores edit commands associated to the next key event.
834 // Will be cleared as soon as the next key event is processed. 831 // Will be cleared as soon as the next key event is processed.
835 EditCommands edit_commands_; 832 EditCommands edit_commands_;
836 833
837 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 834 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
838 }; 835 };
839 836
840 } // namespace content 837 } // namespace content
841 838
842 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 839 #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