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

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: Rebase 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile); 362 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile);
362 void ResetDeviceColorProfileForTesting(); 363 void ResetDeviceColorProfileForTesting();
363 364
364 // Indicates whether this widget has focus. 365 // Indicates whether this widget has focus.
365 bool has_focus() const { return has_focus_; } 366 bool has_focus() const { return has_focus_; }
366 367
367 MouseLockDispatcher* mouse_lock_dispatcher() { 368 MouseLockDispatcher* mouse_lock_dispatcher() {
368 return mouse_lock_dispatcher_.get(); 369 return mouse_lock_dispatcher_.get();
369 } 370 }
370 371
372 void set_focused_pepper_plugin(PepperPluginInstanceImpl* plugin) {
373 focused_pepper_plugin_ = plugin;
374 }
375
371 protected: 376 protected:
372 // Friend RefCounted so that the dtor can be non-public. Using this class 377 // Friend RefCounted so that the dtor can be non-public. Using this class
373 // without ref-counting is an error. 378 // without ref-counting is an error.
374 friend class base::RefCounted<RenderWidget>; 379 friend class base::RefCounted<RenderWidget>;
375 380
376 // For unit tests. 381 // For unit tests.
377 friend class RenderWidgetTest; 382 friend class RenderWidgetTest;
378 383
379 enum ResizeAck { 384 enum ResizeAck {
380 SEND_RESIZE_ACK, 385 SEND_RESIZE_ACK,
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. 770 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface.
766 std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; 771 std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_;
767 772
768 private: 773 private:
769 // When emulated, this returns original device scale factor. 774 // When emulated, this returns original device scale factor.
770 float GetOriginalDeviceScaleFactor() const; 775 float GetOriginalDeviceScaleFactor() const;
771 776
772 // Indicates whether this widget has focus. 777 // Indicates whether this widget has focus.
773 bool has_focus_; 778 bool has_focus_;
774 779
780 // This reference is set by the RenderFrame and is used to query the IME-
781 // related state from the plugin to later send to the browser.
782 PepperPluginInstanceImpl* focused_pepper_plugin_;
783
775 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 784 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
776 }; 785 };
777 786
778 } // namespace content 787 } // namespace content
779 788
780 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 789 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698