| 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 <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 void OnImeEventAck(); | 411 void OnImeEventAck(); |
| 412 #endif | 412 #endif |
| 413 | 413 |
| 414 // Notify the compositor about a change in viewport size. This should be | 414 // Notify the compositor about a change in viewport size. This should be |
| 415 // used only with auto resize mode WebWidgets, as normal WebWidgets should | 415 // used only with auto resize mode WebWidgets, as normal WebWidgets should |
| 416 // go through OnResize. | 416 // go through OnResize. |
| 417 void AutoResizeCompositor(); | 417 void AutoResizeCompositor(); |
| 418 | 418 |
| 419 virtual void SetDeviceScaleFactor(float device_scale_factor); | 419 virtual void SetDeviceScaleFactor(float device_scale_factor); |
| 420 virtual bool SetDeviceColorProfile(const std::vector<char>& color_profile); | 420 virtual bool SetDeviceColorProfile(const std::vector<char>& color_profile); |
| 421 virtual void ResetDeviceColorProfileForTesting(); |
| 421 | 422 |
| 422 virtual void OnOrientationChange(); | 423 virtual void OnOrientationChange(); |
| 423 | 424 |
| 424 // Override points to notify derived classes that a paint has happened. | 425 // Override points to notify derived classes that a paint has happened. |
| 425 // DidInitiatePaint happens when that has completed, and subsequent rendering | 426 // DidInitiatePaint happens when that has completed, and subsequent rendering |
| 426 // won't affect the painted content. DidFlushPaint happens once we've received | 427 // won't affect the painted content. DidFlushPaint happens once we've received |
| 427 // the ACK that the screen has been updated. For a given paint operation, | 428 // the ACK that the screen has been updated. For a given paint operation, |
| 428 // these overrides will always be called in the order DidInitiatePaint, | 429 // these overrides will always be called in the order DidInitiatePaint, |
| 429 // DidFlushPaint. | 430 // DidFlushPaint. |
| 430 virtual void DidInitiatePaint() {} | 431 virtual void DidInitiatePaint() {} |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 ui::MenuSourceType context_menu_source_type_; | 749 ui::MenuSourceType context_menu_source_type_; |
| 749 bool has_host_context_menu_location_; | 750 bool has_host_context_menu_location_; |
| 750 gfx::Point host_context_menu_location_; | 751 gfx::Point host_context_menu_location_; |
| 751 | 752 |
| 752 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 753 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 753 }; | 754 }; |
| 754 | 755 |
| 755 } // namespace content | 756 } // namespace content |
| 756 | 757 |
| 757 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 758 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |