| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |