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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
386 // screen coordinates. | 386 // screen coordinates. |
387 gfx::Rect RootWindowRect(); | 387 gfx::Rect RootWindowRect(); |
388 | 388 |
389 // Indicates whether this widget has focus. | 389 // Indicates whether this widget has focus. |
390 bool has_focus() const { return has_focus_; } | 390 bool has_focus() const { return has_focus_; } |
391 | 391 |
392 MouseLockDispatcher* mouse_lock_dispatcher() { | 392 MouseLockDispatcher* mouse_lock_dispatcher() { |
393 return mouse_lock_dispatcher_.get(); | 393 return mouse_lock_dispatcher_.get(); |
394 } | 394 } |
395 | 395 |
396 // TODO(ekaramad): The reference to the focused pepper plugin will be removed | |
397 // from RenderWidfet. The purpose of having the reference here was to make IME | |
Charlie Reis
2016/09/02 21:57:47
nit: RenderWidget
EhsanK
2016/09/08 17:10:40
Done.
| |
398 // work for OOPIF (https://crbug.com/643727). | |
396 void set_focused_pepper_plugin(PepperPluginInstanceImpl* plugin) { | 399 void set_focused_pepper_plugin(PepperPluginInstanceImpl* plugin) { |
397 focused_pepper_plugin_ = plugin; | 400 focused_pepper_plugin_ = plugin; |
398 } | 401 } |
399 | 402 |
400 // When emulated, this returns original device scale factor. | 403 // When emulated, this returns original device scale factor. |
401 float GetOriginalDeviceScaleFactor() const; | 404 float GetOriginalDeviceScaleFactor() const; |
402 | 405 |
403 protected: | 406 protected: |
404 // Friend RefCounted so that the dtor can be non-public. Using this class | 407 // Friend RefCounted so that the dtor can be non-public. Using this class |
405 // without ref-counting is an error. | 408 // without ref-counting is an error. |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
808 // This reference is set by the RenderFrame and is used to query the IME- | 811 // This reference is set by the RenderFrame and is used to query the IME- |
809 // related state from the plugin to later send to the browser. | 812 // related state from the plugin to later send to the browser. |
810 PepperPluginInstanceImpl* focused_pepper_plugin_; | 813 PepperPluginInstanceImpl* focused_pepper_plugin_; |
811 | 814 |
812 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 815 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
813 }; | 816 }; |
814 | 817 |
815 } // namespace content | 818 } // namespace content |
816 | 819 |
817 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 820 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |