OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 // May return NULL when the window is closing. | 90 // May return NULL when the window is closing. |
91 WebKit::WebWidget* webwidget() const { return webwidget_; } | 91 WebKit::WebWidget* webwidget() const { return webwidget_; } |
92 | 92 |
93 gfx::NativeViewId host_window() const { return host_window_; } | 93 gfx::NativeViewId host_window() const { return host_window_; } |
94 gfx::Size size() const { return size_; } | 94 gfx::Size size() const { return size_; } |
95 bool has_focus() const { return has_focus_; } | 95 bool has_focus() const { return has_focus_; } |
96 bool is_fullscreen() const { return is_fullscreen_; } | 96 bool is_fullscreen() const { return is_fullscreen_; } |
97 | 97 |
98 // IPC::Channel::Listener | 98 // IPC::Channel::Listener |
99 virtual bool OnMessageReceived(const IPC::Message& msg); | 99 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
100 | 100 |
101 // IPC::Message::Sender | 101 // IPC::Message::Sender |
102 virtual bool Send(IPC::Message* msg); | 102 virtual bool Send(IPC::Message* msg) OVERRIDE; |
103 | 103 |
104 // WebKit::WebWidgetClient | 104 // WebKit::WebWidgetClient |
105 virtual void didInvalidateRect(const WebKit::WebRect&); | 105 virtual void didInvalidateRect(const WebKit::WebRect&); |
106 virtual void didScrollRect(int dx, int dy, const WebKit::WebRect& clipRect); | 106 virtual void didScrollRect(int dx, int dy, const WebKit::WebRect& clipRect); |
107 virtual void didActivateCompositor(int compositorIdentifier); | 107 virtual void didActivateCompositor(int compositorIdentifier); |
108 virtual void didDeactivateCompositor(); | 108 virtual void didDeactivateCompositor(); |
109 virtual void scheduleComposite(); | 109 virtual void scheduleComposite(); |
110 virtual void scheduleAnimation(); | 110 virtual void scheduleAnimation(); |
111 virtual void didFocus(); | 111 virtual void didFocus(); |
112 virtual void didBlur(); | 112 virtual void didBlur(); |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 bool animation_task_posted_; | 468 bool animation_task_posted_; |
469 bool invalidation_task_posted_; | 469 bool invalidation_task_posted_; |
470 | 470 |
471 bool has_disable_gpu_vsync_switch_; | 471 bool has_disable_gpu_vsync_switch_; |
472 base::TimeTicks last_do_deferred_update_time_; | 472 base::TimeTicks last_do_deferred_update_time_; |
473 | 473 |
474 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 474 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
475 }; | 475 }; |
476 | 476 |
477 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 477 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |