Chromium Code Reviews| 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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 373 bool has_focus() const { return has_focus_; } | 373 bool has_focus() const { return has_focus_; } |
| 374 | 374 |
| 375 MouseLockDispatcher* mouse_lock_dispatcher() { | 375 MouseLockDispatcher* mouse_lock_dispatcher() { |
| 376 return mouse_lock_dispatcher_.get(); | 376 return mouse_lock_dispatcher_.get(); |
| 377 } | 377 } |
| 378 | 378 |
| 379 void set_focused_pepper_plugin(PepperPluginInstanceImpl* plugin) { | 379 void set_focused_pepper_plugin(PepperPluginInstanceImpl* plugin) { |
| 380 focused_pepper_plugin_ = plugin; | 380 focused_pepper_plugin_ = plugin; |
| 381 } | 381 } |
| 382 | 382 |
| 383 PepperPluginInstanceImpl* focused_pepper_plugin() const { | |
|
Charlie Reis
2016/08/31 22:50:03
lfg@: Can you review this part? I know you had so
lfg
2016/09/01 15:42:27
I really don't like this. We shouldn't be exposing
EhsanK
2016/09/01 21:58:37
For now I have removed this line of code and pass
lfg
2016/09/02 16:39:00
Can you file a bug and add a TODO to fix the focus
| |
| 384 return focused_pepper_plugin_; | |
| 385 } | |
| 386 | |
| 383 // When emulated, this returns original device scale factor. | 387 // When emulated, this returns original device scale factor. |
| 384 float GetOriginalDeviceScaleFactor() const; | 388 float GetOriginalDeviceScaleFactor() const; |
| 385 | 389 |
| 386 protected: | 390 protected: |
| 387 // Friend RefCounted so that the dtor can be non-public. Using this class | 391 // Friend RefCounted so that the dtor can be non-public. Using this class |
| 388 // without ref-counting is an error. | 392 // without ref-counting is an error. |
| 389 friend class base::RefCounted<RenderWidget>; | 393 friend class base::RefCounted<RenderWidget>; |
| 390 | 394 |
| 391 // For unit tests. | 395 // For unit tests. |
| 392 friend class RenderWidgetTest; | 396 friend class RenderWidgetTest; |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 794 // This reference is set by the RenderFrame and is used to query the IME- | 798 // This reference is set by the RenderFrame and is used to query the IME- |
| 795 // related state from the plugin to later send to the browser. | 799 // related state from the plugin to later send to the browser. |
| 796 PepperPluginInstanceImpl* focused_pepper_plugin_; | 800 PepperPluginInstanceImpl* focused_pepper_plugin_; |
| 797 | 801 |
| 798 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 802 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 799 }; | 803 }; |
| 800 | 804 |
| 801 } // namespace content | 805 } // namespace content |
| 802 | 806 |
| 803 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 807 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |