| 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 <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 } | 106 } |
| 107 | 107 |
| 108 // May return NULL when the window is closing. | 108 // May return NULL when the window is closing. |
| 109 WebKit::WebWidget* webwidget() const { return webwidget_; } | 109 WebKit::WebWidget* webwidget() const { return webwidget_; } |
| 110 | 110 |
| 111 gfx::NativeViewId host_window() const { return host_window_; } | 111 gfx::NativeViewId host_window() const { return host_window_; } |
| 112 gfx::Size size() const { return size_; } | 112 gfx::Size size() const { return size_; } |
| 113 bool has_focus() const { return has_focus_; } | 113 bool has_focus() const { return has_focus_; } |
| 114 bool is_fullscreen() const { return is_fullscreen_; } | 114 bool is_fullscreen() const { return is_fullscreen_; } |
| 115 bool is_hidden() const { return is_hidden_; } | 115 bool is_hidden() const { return is_hidden_; } |
| 116 bool is_swapped_out() const { return is_swapped_out_; } |
| 116 | 117 |
| 117 // IPC::Listener | 118 // IPC::Listener |
| 118 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 119 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 119 | 120 |
| 120 // IPC::Sender | 121 // IPC::Sender |
| 121 virtual bool Send(IPC::Message* msg) OVERRIDE; | 122 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 122 | 123 |
| 123 // WebKit::WebWidgetClient | 124 // WebKit::WebWidgetClient |
| 124 virtual void willBeginCompositorFrame(); | 125 virtual void willBeginCompositorFrame(); |
| 125 virtual void didInvalidateRect(const WebKit::WebRect&); | 126 virtual void didInvalidateRect(const WebKit::WebRect&); |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 // State associated with the BeginSmoothScroll synthetic scrolling function. | 611 // State associated with the BeginSmoothScroll synthetic scrolling function. |
| 611 int next_smooth_scroll_gesture_id_; | 612 int next_smooth_scroll_gesture_id_; |
| 612 typedef std::map<int, SmoothScrollCompletionCallback> | 613 typedef std::map<int, SmoothScrollCompletionCallback> |
| 613 PendingSmoothScrollGestureMap; | 614 PendingSmoothScrollGestureMap; |
| 614 PendingSmoothScrollGestureMap pending_smooth_scroll_gestures_; | 615 PendingSmoothScrollGestureMap pending_smooth_scroll_gestures_; |
| 615 | 616 |
| 616 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 617 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 617 }; | 618 }; |
| 618 | 619 |
| 619 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 620 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |