| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 // RenderWidgetScreenMetricsDelegate | 225 // RenderWidgetScreenMetricsDelegate |
| 226 void Redraw() override; | 226 void Redraw() override; |
| 227 void Resize(const ResizeParams& resize_params) override; | 227 void Resize(const ResizeParams& resize_params) override; |
| 228 void SetScreenMetricsEmulationParameters( | 228 void SetScreenMetricsEmulationParameters( |
| 229 bool enabled, | 229 bool enabled, |
| 230 const blink::WebDeviceEmulationParams& params) override; | 230 const blink::WebDeviceEmulationParams& params) override; |
| 231 void SetScreenRects(const gfx::Rect& view_screen_rect, | 231 void SetScreenRects(const gfx::Rect& view_screen_rect, |
| 232 const gfx::Rect& window_screen_rect) override; | 232 const gfx::Rect& window_screen_rect) override; |
| 233 | 233 |
| 234 // blink::WebWidgetClient | 234 // blink::WebWidgetClient |
| 235 void didAutoResize(const blink::WebSize& new_size) override; | |
| 236 void initializeLayerTreeView() override; | 235 void initializeLayerTreeView() override; |
| 237 blink::WebLayerTreeView* layerTreeView() override; | 236 blink::WebLayerTreeView* layerTreeView() override; |
| 238 void didMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override; | 237 void didMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override; |
| 239 void didFocus() override; | 238 void didFocus() override; |
| 240 void didChangeCursor(const blink::WebCursorInfo&) override; | 239 void didChangeCursor(const blink::WebCursorInfo&) override; |
| 241 void closeWidgetSoon() override; | 240 void closeWidgetSoon() override; |
| 242 void show(blink::WebNavigationPolicy) override; | 241 void show(blink::WebNavigationPolicy) override; |
| 243 blink::WebRect windowRect() override; | 242 blink::WebRect windowRect() override; |
| 244 void setToolTipText(const blink::WebString& text, | 243 void setToolTipText(const blink::WebString& text, |
| 245 blink::WebTextDirection hint) override; | 244 blink::WebTextDirection hint) override; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 // Checks if the composition range or composition character bounds have been | 350 // Checks if the composition range or composition character bounds have been |
| 352 // changed. If they are changed, the new value will be sent to the browser | 351 // changed. If they are changed, the new value will be sent to the browser |
| 353 // process. This method does nothing when the browser process is not able to | 352 // process. This method does nothing when the browser process is not able to |
| 354 // handle composition range and composition character bounds. | 353 // handle composition range and composition character bounds. |
| 355 void UpdateCompositionInfo(bool should_update_range); | 354 void UpdateCompositionInfo(bool should_update_range); |
| 356 | 355 |
| 357 // Change the device ICC color profile while running a layout test. | 356 // Change the device ICC color profile while running a layout test. |
| 358 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile); | 357 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile); |
| 359 void ResetDeviceColorProfileForTesting(); | 358 void ResetDeviceColorProfileForTesting(); |
| 360 | 359 |
| 360 // Called when the Widget has changed size as a result of an auto-resize. |
| 361 void DidAutoResize(const gfx::Size& new_size); |
| 362 |
| 361 // Indicates whether this widget has focus. | 363 // Indicates whether this widget has focus. |
| 362 bool has_focus() const { return has_focus_; } | 364 bool has_focus() const { return has_focus_; } |
| 363 | 365 |
| 364 MouseLockDispatcher* mouse_lock_dispatcher() { | 366 MouseLockDispatcher* mouse_lock_dispatcher() { |
| 365 return mouse_lock_dispatcher_.get(); | 367 return mouse_lock_dispatcher_.get(); |
| 366 } | 368 } |
| 367 | 369 |
| 368 protected: | 370 protected: |
| 369 // Friend RefCounted so that the dtor can be non-public. Using this class | 371 // Friend RefCounted so that the dtor can be non-public. Using this class |
| 370 // without ref-counting is an error. | 372 // without ref-counting is an error. |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 | 770 |
| 769 // Indicates whether this widget has focus. | 771 // Indicates whether this widget has focus. |
| 770 bool has_focus_; | 772 bool has_focus_; |
| 771 | 773 |
| 772 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 774 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 773 }; | 775 }; |
| 774 | 776 |
| 775 } // namespace content | 777 } // namespace content |
| 776 | 778 |
| 777 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 779 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |