| 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 | 10 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 int mouse_event_x, | 172 int mouse_event_x, |
| 173 int mouse_event_y); | 173 int mouse_event_y); |
| 174 | 174 |
| 175 // Close the underlying WebWidget. | 175 // Close the underlying WebWidget. |
| 176 virtual void Close(); | 176 virtual void Close(); |
| 177 | 177 |
| 178 float filtered_time_per_frame() const { | 178 float filtered_time_per_frame() const { |
| 179 return filtered_time_per_frame_; | 179 return filtered_time_per_frame_; |
| 180 } | 180 } |
| 181 | 181 |
| 182 bool is_accelerated_compositing_active() const { |
| 183 return is_accelerated_compositing_active_; |
| 184 } |
| 185 |
| 182 enum ShowIme { | 186 enum ShowIme { |
| 183 DO_NOT_SHOW_IME, | 187 DO_NOT_SHOW_IME, |
| 184 SHOW_IME_IF_NEEDED | 188 SHOW_IME_IF_NEEDED |
| 185 }; | 189 }; |
| 186 | 190 |
| 187 protected: | 191 protected: |
| 188 // Friend RefCounted so that the dtor can be non-public. Using this class | 192 // Friend RefCounted so that the dtor can be non-public. Using this class |
| 189 // without ref-counting is an error. | 193 // without ref-counting is an error. |
| 190 friend class base::RefCounted<RenderWidget>; | 194 friend class base::RefCounted<RenderWidget>; |
| 191 // For unit tests. | 195 // For unit tests. |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 | 624 |
| 621 // Specified whether the compositor will run in its own thread. | 625 // Specified whether the compositor will run in its own thread. |
| 622 bool is_threaded_compositing_enabled_; | 626 bool is_threaded_compositing_enabled_; |
| 623 | 627 |
| 624 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 628 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 625 }; | 629 }; |
| 626 | 630 |
| 627 } // namespace content | 631 } // namespace content |
| 628 | 632 |
| 629 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 633 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |