Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: content/renderer/render_widget.h

Issue 2278283002: Implement Mac Pop-up Dictionary for OOPIF. (Closed)
Patch Set: Rebased Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 // screen coordinates. 387 // screen coordinates.
388 gfx::Rect RootWindowRect(); 388 gfx::Rect RootWindowRect();
389 389
390 // Indicates whether this widget has focus. 390 // Indicates whether this widget has focus.
391 bool has_focus() const { return has_focus_; } 391 bool has_focus() const { return has_focus_; }
392 392
393 MouseLockDispatcher* mouse_lock_dispatcher() { 393 MouseLockDispatcher* mouse_lock_dispatcher() {
394 return mouse_lock_dispatcher_.get(); 394 return mouse_lock_dispatcher_.get();
395 } 395 }
396 396
397 // TODO(ekaramad): The reference to the focused pepper plugin will be removed
398 // from RenderWidget. The purpose of having the reference here was to make IME
399 // work for OOPIF (https://crbug.com/643727).
397 void set_focused_pepper_plugin(PepperPluginInstanceImpl* plugin) { 400 void set_focused_pepper_plugin(PepperPluginInstanceImpl* plugin) {
398 focused_pepper_plugin_ = plugin; 401 focused_pepper_plugin_ = plugin;
399 } 402 }
400 403
401 // When emulated, this returns original device scale factor. 404 // When emulated, this returns original device scale factor.
402 float GetOriginalDeviceScaleFactor() const; 405 float GetOriginalDeviceScaleFactor() const;
403 406
404 protected: 407 protected:
405 // Friend RefCounted so that the dtor can be non-public. Using this class 408 // Friend RefCounted so that the dtor can be non-public. Using this class
406 // without ref-counting is an error. 409 // without ref-counting is an error.
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 // This reference is set by the RenderFrame and is used to query the IME- 812 // This reference is set by the RenderFrame and is used to query the IME-
810 // related state from the plugin to later send to the browser. 813 // related state from the plugin to later send to the browser.
811 PepperPluginInstanceImpl* focused_pepper_plugin_; 814 PepperPluginInstanceImpl* focused_pepper_plugin_;
812 815
813 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 816 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
814 }; 817 };
815 818
816 } // namespace content 819 } // namespace content
817 820
818 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 821 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698