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

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

Issue 2029423003: OOPIF IME: Renderer Side Changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed an Error Created 4 years, 5 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 namespace scheduler { 79 namespace scheduler {
80 class RenderWidgetSchedulingState; 80 class RenderWidgetSchedulingState;
81 } 81 }
82 82
83 namespace content { 83 namespace content {
84 class CompositorDependencies; 84 class CompositorDependencies;
85 class ExternalPopupMenu; 85 class ExternalPopupMenu;
86 class FrameSwapMessageQueue; 86 class FrameSwapMessageQueue;
87 class ImeEventGuard; 87 class ImeEventGuard;
88 class PepperPluginInstanceImpl;
88 class RenderFrameImpl; 89 class RenderFrameImpl;
89 class RenderFrameProxy; 90 class RenderFrameProxy;
90 class RenderWidgetCompositor; 91 class RenderWidgetCompositor;
91 class RenderWidgetOwnerDelegate; 92 class RenderWidgetOwnerDelegate;
92 class RenderWidgetScreenMetricsEmulator; 93 class RenderWidgetScreenMetricsEmulator;
93 class ResizingModeSelector; 94 class ResizingModeSelector;
94 struct ContextMenuParams; 95 struct ContextMenuParams;
95 struct DidOverscrollParams; 96 struct DidOverscrollParams;
96 struct ResizeParams; 97 struct ResizeParams;
97 98
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile); 359 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile);
359 void ResetDeviceColorProfileForTesting(); 360 void ResetDeviceColorProfileForTesting();
360 361
361 // Indicates whether this widget has focus. 362 // Indicates whether this widget has focus.
362 bool has_focus() const { return has_focus_; } 363 bool has_focus() const { return has_focus_; }
363 364
364 MouseLockDispatcher* mouse_lock_dispatcher() { 365 MouseLockDispatcher* mouse_lock_dispatcher() {
365 return mouse_lock_dispatcher_.get(); 366 return mouse_lock_dispatcher_.get();
366 } 367 }
367 368
369 void set_focused_pepper_plugin(PepperPluginInstanceImpl* plugin) {
370 focused_pepper_plugin_ = plugin;
371 }
372
368 protected: 373 protected:
369 // Friend RefCounted so that the dtor can be non-public. Using this class 374 // Friend RefCounted so that the dtor can be non-public. Using this class
370 // without ref-counting is an error. 375 // without ref-counting is an error.
371 friend class base::RefCounted<RenderWidget>; 376 friend class base::RefCounted<RenderWidget>;
372 377
373 // For unit tests. 378 // For unit tests.
374 friend class RenderWidgetTest; 379 friend class RenderWidgetTest;
375 380
376 enum ResizeAck { 381 enum ResizeAck {
377 SEND_RESIZE_ACK, 382 SEND_RESIZE_ACK,
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. 767 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface.
763 std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; 768 std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_;
764 769
765 private: 770 private:
766 // When emulated, this returns original device scale factor. 771 // When emulated, this returns original device scale factor.
767 float GetOriginalDeviceScaleFactor() const; 772 float GetOriginalDeviceScaleFactor() const;
768 773
769 // Indicates whether this widget has focus. 774 // Indicates whether this widget has focus.
770 bool has_focus_; 775 bool has_focus_;
771 776
777 // This reference is set by the RenderFrame and is used to query the IME-
778 // related state from the plugin to later send to the browser.
779 PepperPluginInstanceImpl* focused_pepper_plugin_;
780
772 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 781 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
773 }; 782 };
774 783
775 } // namespace content 784 } // namespace content
776 785
777 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 786 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698