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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 190 |
191 // Handle common setup/teardown for handling IME events. | 191 // Handle common setup/teardown for handling IME events. |
192 void StartHandlingImeEvent(); | 192 void StartHandlingImeEvent(); |
193 void FinishHandlingImeEvent(); | 193 void FinishHandlingImeEvent(); |
194 | 194 |
195 virtual void InstrumentWillBeginFrame(int frame_id) {} | 195 virtual void InstrumentWillBeginFrame(int frame_id) {} |
196 virtual void InstrumentDidBeginFrame() {} | 196 virtual void InstrumentDidBeginFrame() {} |
197 virtual void InstrumentDidCancelFrame() {} | 197 virtual void InstrumentDidCancelFrame() {} |
198 virtual void InstrumentWillComposite() {} | 198 virtual void InstrumentWillComposite() {} |
199 | 199 |
200 virtual bool AllowPartialSwap() const; | |
201 bool UsingSynchronousRendererCompositor() const; | 200 bool UsingSynchronousRendererCompositor() const; |
202 | 201 |
203 bool is_swapped_out() { return is_swapped_out_; } | 202 bool is_swapped_out() { return is_swapped_out_; } |
204 | 203 |
205 // ScreenMetricsEmulator class manages screen emulation inside a render | 204 // ScreenMetricsEmulator class manages screen emulation inside a render |
206 // widget. This includes resizing, placing view on the screen at desired | 205 // widget. This includes resizing, placing view on the screen at desired |
207 // position, changing device scale factor, and scaling down the whole | 206 // position, changing device scale factor, and scaling down the whole |
208 // widget if required to fit into the browser window. | 207 // widget if required to fit into the browser window. |
209 class ScreenMetricsEmulator; | 208 class ScreenMetricsEmulator; |
210 | 209 |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 | 781 |
783 ui::MenuSourceType context_menu_source_type_; | 782 ui::MenuSourceType context_menu_source_type_; |
784 gfx::Point touch_editing_context_menu_location_; | 783 gfx::Point touch_editing_context_menu_location_; |
785 | 784 |
786 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 785 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
787 }; | 786 }; |
788 | 787 |
789 } // namespace content | 788 } // namespace content |
790 | 789 |
791 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 790 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |