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

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

Issue 2398763003: Don't set view_screen_rect_ on RequestMove ACK (Closed)
Patch Set: 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 const gfx::Rect& window_screen_rect) override; 244 const gfx::Rect& window_screen_rect) override;
245 245
246 // blink::WebWidgetClient 246 // blink::WebWidgetClient
247 void initializeLayerTreeView() override; 247 void initializeLayerTreeView() override;
248 blink::WebLayerTreeView* layerTreeView() override; 248 blink::WebLayerTreeView* layerTreeView() override;
249 void didMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override; 249 void didMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override;
250 void didChangeCursor(const blink::WebCursorInfo&) override; 250 void didChangeCursor(const blink::WebCursorInfo&) override;
251 void closeWidgetSoon() override; 251 void closeWidgetSoon() override;
252 void show(blink::WebNavigationPolicy) override; 252 void show(blink::WebNavigationPolicy) override;
253 blink::WebRect windowRect() override; 253 blink::WebRect windowRect() override;
254 blink::WebRect viewRect() override;
254 void setToolTipText(const blink::WebString& text, 255 void setToolTipText(const blink::WebString& text,
255 blink::WebTextDirection hint) override; 256 blink::WebTextDirection hint) override;
256 void setWindowRect(const blink::WebRect&) override; 257 void setWindowRect(const blink::WebRect&) override;
257 blink::WebRect windowResizerRect() override; 258 blink::WebRect windowResizerRect() override;
258 blink::WebScreenInfo screenInfo() override; 259 blink::WebScreenInfo screenInfo() override;
259 void resetInputMethod() override; 260 void resetInputMethod() override;
260 void didHandleGestureEvent(const blink::WebGestureEvent& event, 261 void didHandleGestureEvent(const blink::WebGestureEvent& event,
261 bool event_cancelled) override; 262 bool event_cancelled) override;
262 void didOverscroll(const blink::WebFloatSize& overscrollDelta, 263 void didOverscroll(const blink::WebFloatSize& overscrollDelta,
263 const blink::WebFloatSize& accumulatedOverscroll, 264 const blink::WebFloatSize& accumulatedOverscroll,
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 // If immediate_request is true, render sends the latest composition info to 365 // If immediate_request is true, render sends the latest composition info to
365 // the browser even if the composition info is not changed. 366 // the browser even if the composition info is not changed.
366 void UpdateCompositionInfo(bool immediate_request); 367 void UpdateCompositionInfo(bool immediate_request);
367 368
368 // Change the device ICC color profile while running a layout test. 369 // Change the device ICC color profile while running a layout test.
369 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile); 370 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile);
370 371
371 // Called when the Widget has changed size as a result of an auto-resize. 372 // Called when the Widget has changed size as a result of an auto-resize.
372 void DidAutoResize(const gfx::Size& new_size); 373 void DidAutoResize(const gfx::Size& new_size);
373 374
374 // Called to get the position of the root window containing the widget in
375 // screen coordinates.
376 gfx::Rect RootWindowRect();
377
378 // Indicates whether this widget has focus. 375 // Indicates whether this widget has focus.
379 bool has_focus() const { return has_focus_; } 376 bool has_focus() const { return has_focus_; }
380 377
381 MouseLockDispatcher* mouse_lock_dispatcher() { 378 MouseLockDispatcher* mouse_lock_dispatcher() {
382 return mouse_lock_dispatcher_.get(); 379 return mouse_lock_dispatcher_.get();
383 } 380 }
384 381
385 void set_focused_pepper_plugin(PepperPluginInstanceImpl* plugin) { 382 void set_focused_pepper_plugin(PepperPluginInstanceImpl* plugin) {
386 focused_pepper_plugin_ = plugin; 383 focused_pepper_plugin_ = plugin;
387 } 384 }
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 // Stores edit commands associated to the next key event. 810 // Stores edit commands associated to the next key event.
814 // Will be cleared as soon as the next key event is processed. 811 // Will be cleared as soon as the next key event is processed.
815 EditCommands edit_commands_; 812 EditCommands edit_commands_;
816 813
817 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 814 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
818 }; 815 };
819 816
820 } // namespace content 817 } // namespace content
821 818
822 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 819 #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