| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 class WebNode; | 80 class WebNode; |
| 81 struct WebPoint; | 81 struct WebPoint; |
| 82 } // namespace blink | 82 } // namespace blink |
| 83 | 83 |
| 84 namespace cc { | 84 namespace cc { |
| 85 class CompositorFrameSink; | 85 class CompositorFrameSink; |
| 86 class SwapPromise; | 86 class SwapPromise; |
| 87 } | 87 } |
| 88 | 88 |
| 89 namespace gfx { | 89 namespace gfx { |
| 90 class ICCProfile; |
| 90 class Range; | 91 class Range; |
| 91 } | 92 } |
| 92 | 93 |
| 93 namespace ui { | 94 namespace ui { |
| 94 struct DidOverscrollParams; | 95 struct DidOverscrollParams; |
| 95 } | 96 } |
| 96 | 97 |
| 97 namespace content { | 98 namespace content { |
| 98 class CompositorDependencies; | 99 class CompositorDependencies; |
| 99 class ExternalPopupMenu; | 100 class ExternalPopupMenu; |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 | 381 |
| 381 // Checks if the composition range or composition character bounds have been | 382 // Checks if the composition range or composition character bounds have been |
| 382 // changed. If they are changed, the new value will be sent to the browser | 383 // changed. If they are changed, the new value will be sent to the browser |
| 383 // process. This method does nothing when the browser process is not able to | 384 // process. This method does nothing when the browser process is not able to |
| 384 // handle composition range and composition character bounds. | 385 // handle composition range and composition character bounds. |
| 385 // If immediate_request is true, render sends the latest composition info to | 386 // If immediate_request is true, render sends the latest composition info to |
| 386 // the browser even if the composition info is not changed. | 387 // the browser even if the composition info is not changed. |
| 387 void UpdateCompositionInfo(bool immediate_request); | 388 void UpdateCompositionInfo(bool immediate_request); |
| 388 | 389 |
| 389 // Change the device ICC color profile while running a layout test. | 390 // Change the device ICC color profile while running a layout test. |
| 390 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile); | 391 void SetDeviceColorProfileForTesting(const gfx::ICCProfile& color_profile); |
| 391 | 392 |
| 392 // Called when the Widget has changed size as a result of an auto-resize. | 393 // Called when the Widget has changed size as a result of an auto-resize. |
| 393 void DidAutoResize(const gfx::Size& new_size); | 394 void DidAutoResize(const gfx::Size& new_size); |
| 394 | 395 |
| 395 // Indicates whether this widget has focus. | 396 // Indicates whether this widget has focus. |
| 396 bool has_focus() const { return has_focus_; } | 397 bool has_focus() const { return has_focus_; } |
| 397 | 398 |
| 398 MouseLockDispatcher* mouse_lock_dispatcher() const { | 399 MouseLockDispatcher* mouse_lock_dispatcher() const { |
| 399 return mouse_lock_dispatcher_.get(); | 400 return mouse_lock_dispatcher_.get(); |
| 400 } | 401 } |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 // being handled. If the current event results in starting a drag/drop | 838 // being handled. If the current event results in starting a drag/drop |
| 838 // session, this info is sent to the browser along with other drag/drop info. | 839 // session, this info is sent to the browser along with other drag/drop info. |
| 839 DragEventSourceInfo possible_drag_event_info_; | 840 DragEventSourceInfo possible_drag_event_info_; |
| 840 | 841 |
| 841 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 842 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 842 }; | 843 }; |
| 843 | 844 |
| 844 } // namespace content | 845 } // namespace content |
| 845 | 846 |
| 846 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 847 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |