| 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 // go through OnResize. | 524 // go through OnResize. |
| 525 void AutoResizeCompositor(); | 525 void AutoResizeCompositor(); |
| 526 | 526 |
| 527 virtual void OnSetDeviceScaleFactor(float device_scale_factor); | 527 virtual void OnSetDeviceScaleFactor(float device_scale_factor); |
| 528 bool SetDeviceColorProfile(const std::vector<char>& color_profile); | 528 bool SetDeviceColorProfile(const std::vector<char>& color_profile); |
| 529 | 529 |
| 530 virtual void OnOrientationChange(); | 530 virtual void OnOrientationChange(); |
| 531 | 531 |
| 532 // Override points to notify derived classes that a paint has happened. | 532 // Override points to notify derived classes that a paint has happened. |
| 533 // DidInitiatePaint happens when that has completed, and subsequent rendering | 533 // DidInitiatePaint happens when that has completed, and subsequent rendering |
| 534 // won't affect the painted content. DidFlushPaint happens once we've received | 534 // won't affect the painted content. |
| 535 // the ACK that the screen has been updated. For a given paint operation, | |
| 536 // these overrides will always be called in the order DidInitiatePaint, | |
| 537 // DidFlushPaint. | |
| 538 virtual void DidInitiatePaint() {} | 535 virtual void DidInitiatePaint() {} |
| 539 virtual void DidFlushPaint(); | |
| 540 | 536 |
| 541 virtual GURL GetURLForGraphicsContext3D(); | 537 virtual GURL GetURLForGraphicsContext3D(); |
| 542 | 538 |
| 543 // Sets the "hidden" state of this widget. All accesses to is_hidden_ should | 539 // Sets the "hidden" state of this widget. All accesses to is_hidden_ should |
| 544 // use this method so that we can properly inform the RenderThread of our | 540 // use this method so that we can properly inform the RenderThread of our |
| 545 // state. | 541 // state. |
| 546 void SetHidden(bool hidden); | 542 void SetHidden(bool hidden); |
| 547 | 543 |
| 548 void DidToggleFullscreen(); | 544 void DidToggleFullscreen(); |
| 549 | 545 |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 // Stores edit commands associated to the next key event. | 822 // Stores edit commands associated to the next key event. |
| 827 // Will be cleared as soon as the next key event is processed. | 823 // Will be cleared as soon as the next key event is processed. |
| 828 EditCommands edit_commands_; | 824 EditCommands edit_commands_; |
| 829 | 825 |
| 830 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 826 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 831 }; | 827 }; |
| 832 | 828 |
| 833 } // namespace content | 829 } // namespace content |
| 834 | 830 |
| 835 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 831 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |