| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // messages with this ID to the parent. | 87 // messages with this ID to the parent. |
| 88 int32 routing_id() const { | 88 int32 routing_id() const { |
| 89 return routing_id_; | 89 return routing_id_; |
| 90 } | 90 } |
| 91 | 91 |
| 92 // May return NULL when the window is closing. | 92 // May return NULL when the window is closing. |
| 93 WebKit::WebWidget* webwidget() const { return webwidget_; } | 93 WebKit::WebWidget* webwidget() const { return webwidget_; } |
| 94 gfx::NativeViewId host_window() const { return host_window_; } | 94 gfx::NativeViewId host_window() const { return host_window_; } |
| 95 gfx::Size size() const { return size_; } | 95 gfx::Size size() const { return size_; } |
| 96 bool has_focus() const { return has_focus_; } | 96 bool has_focus() const { return has_focus_; } |
| 97 // TODO(darin): add a boolean flag to ViewMsg_Resize indicating whether or |
| 98 // not we are in fullscreen mode. Return the value that was reported via the |
| 99 // ViewMsg_Resize IPC here. |
| 100 bool is_fullscreen() const { return true; } |
| 97 | 101 |
| 98 // IPC::Channel::Listener | 102 // IPC::Channel::Listener |
| 99 virtual bool OnMessageReceived(const IPC::Message& msg); | 103 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 100 | 104 |
| 101 // IPC::Message::Sender | 105 // IPC::Message::Sender |
| 102 virtual bool Send(IPC::Message* msg); | 106 virtual bool Send(IPC::Message* msg); |
| 103 | 107 |
| 104 // WebKit::WebWidgetClient | 108 // WebKit::WebWidgetClient |
| 105 virtual void didInvalidateRect(const WebKit::WebRect&); | 109 virtual void didInvalidateRect(const WebKit::WebRect&); |
| 106 virtual void didScrollRect(int dx, int dy, const WebKit::WebRect& clipRect); | 110 virtual void didScrollRect(int dx, int dy, const WebKit::WebRect& clipRect); |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 bool animation_task_posted_; | 460 bool animation_task_posted_; |
| 457 bool invalidation_task_posted_; | 461 bool invalidation_task_posted_; |
| 458 | 462 |
| 459 bool has_disable_gpu_vsync_switch_; | 463 bool has_disable_gpu_vsync_switch_; |
| 460 base::TimeTicks last_do_deferred_update_time_; | 464 base::TimeTicks last_do_deferred_update_time_; |
| 461 | 465 |
| 462 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 466 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 463 }; | 467 }; |
| 464 | 468 |
| 465 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 469 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |