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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <vector> | 10 #include <vector> |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 bool is_fullscreen() const { return is_fullscreen_; } | 106 bool is_fullscreen() const { return is_fullscreen_; } |
107 bool is_hidden() const { return is_hidden_; } | 107 bool is_hidden() const { return is_hidden_; } |
108 | 108 |
109 // IPC::Channel::Listener | 109 // IPC::Channel::Listener |
110 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 110 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
111 | 111 |
112 // IPC::Message::Sender | 112 // IPC::Message::Sender |
113 virtual bool Send(IPC::Message* msg) OVERRIDE; | 113 virtual bool Send(IPC::Message* msg) OVERRIDE; |
114 | 114 |
115 // WebKit::WebWidgetClient | 115 // WebKit::WebWidgetClient |
| 116 virtual void willBeginCompositorFrame(); |
116 virtual void didInvalidateRect(const WebKit::WebRect&); | 117 virtual void didInvalidateRect(const WebKit::WebRect&); |
117 virtual void didScrollRect(int dx, int dy, const WebKit::WebRect& clipRect); | 118 virtual void didScrollRect(int dx, int dy, const WebKit::WebRect& clipRect); |
118 virtual void didAutoResize(const WebKit::WebSize& new_size); | 119 virtual void didAutoResize(const WebKit::WebSize& new_size); |
119 virtual void didActivateCompositor(int input_handler_identifier); | 120 virtual void didActivateCompositor(int input_handler_identifier); |
120 virtual void didDeactivateCompositor(); | 121 virtual void didDeactivateCompositor(); |
121 virtual void didCommitAndDrawCompositorFrame(); | 122 virtual void didCommitAndDrawCompositorFrame(); |
122 virtual void didCompleteSwapBuffers(); | 123 virtual void didCompleteSwapBuffers(); |
123 virtual void scheduleComposite(); | 124 virtual void scheduleComposite(); |
124 virtual void scheduleAnimation(); | 125 virtual void scheduleAnimation(); |
125 virtual void didFocus(); | 126 virtual void didFocus(); |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 // Set to true if we should invert all pixels. | 517 // Set to true if we should invert all pixels. |
517 bool invert_; | 518 bool invert_; |
518 | 519 |
519 // The Skia paint object for inverting. | 520 // The Skia paint object for inverting. |
520 scoped_ptr<SkPaint> invert_paint_; | 521 scoped_ptr<SkPaint> invert_paint_; |
521 | 522 |
522 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 523 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
523 }; | 524 }; |
524 | 525 |
525 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 526 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |