| 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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 | 496 |
| 497 // Called by the browser process to update the cursor and composition | 497 // Called by the browser process to update the cursor and composition |
| 498 // information. | 498 // information. |
| 499 void OnRequestCompositionUpdate(bool immediate_request, bool monitor_request); | 499 void OnRequestCompositionUpdate(bool immediate_request, bool monitor_request); |
| 500 | 500 |
| 501 // Notify the compositor about a change in viewport size. This should be | 501 // Notify the compositor about a change in viewport size. This should be |
| 502 // used only with auto resize mode WebWidgets, as normal WebWidgets should | 502 // used only with auto resize mode WebWidgets, as normal WebWidgets should |
| 503 // go through OnResize. | 503 // go through OnResize. |
| 504 void AutoResizeCompositor(); | 504 void AutoResizeCompositor(); |
| 505 | 505 |
| 506 virtual void SetDeviceScaleFactor(float device_scale_factor); | 506 virtual void OnSetDeviceScaleFactor(float device_scale_factor); |
| 507 bool SetDeviceColorProfile(const std::vector<char>& color_profile); | 507 bool SetDeviceColorProfile(const std::vector<char>& color_profile); |
| 508 | 508 |
| 509 virtual void OnOrientationChange(); | 509 virtual void OnOrientationChange(); |
| 510 | 510 |
| 511 // Override points to notify derived classes that a paint has happened. | 511 // Override points to notify derived classes that a paint has happened. |
| 512 // DidInitiatePaint happens when that has completed, and subsequent rendering | 512 // DidInitiatePaint happens when that has completed, and subsequent rendering |
| 513 // won't affect the painted content. DidFlushPaint happens once we've received | 513 // won't affect the painted content. DidFlushPaint happens once we've received |
| 514 // the ACK that the screen has been updated. For a given paint operation, | 514 // the ACK that the screen has been updated. For a given paint operation, |
| 515 // these overrides will always be called in the order DidInitiatePaint, | 515 // these overrides will always be called in the order DidInitiatePaint, |
| 516 // DidFlushPaint. | 516 // DidFlushPaint. |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 790 // This reference is set by the RenderFrame and is used to query the IME- | 790 // This reference is set by the RenderFrame and is used to query the IME- |
| 791 // related state from the plugin to later send to the browser. | 791 // related state from the plugin to later send to the browser. |
| 792 PepperPluginInstanceImpl* focused_pepper_plugin_; | 792 PepperPluginInstanceImpl* focused_pepper_plugin_; |
| 793 | 793 |
| 794 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 794 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 795 }; | 795 }; |
| 796 | 796 |
| 797 } // namespace content | 797 } // namespace content |
| 798 | 798 |
| 799 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 799 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |