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

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: Addressing kenrb@'s comments Created 4 years, 6 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 namespace scheduler { 77 namespace scheduler {
78 class RenderWidgetSchedulingState; 78 class RenderWidgetSchedulingState;
79 } 79 }
80 80
81 namespace content { 81 namespace content {
82 class CompositorDependencies; 82 class CompositorDependencies;
83 class ExternalPopupMenu; 83 class ExternalPopupMenu;
84 class FrameSwapMessageQueue; 84 class FrameSwapMessageQueue;
85 class ImeEventGuard; 85 class ImeEventGuard;
86 class PepperPluginInstanceImpl;
86 class RenderFrameImpl; 87 class RenderFrameImpl;
87 class RenderFrameProxy; 88 class RenderFrameProxy;
88 class RenderWidgetCompositor; 89 class RenderWidgetCompositor;
89 class RenderWidgetOwnerDelegate; 90 class RenderWidgetOwnerDelegate;
90 class RenderWidgetScreenMetricsEmulator; 91 class RenderWidgetScreenMetricsEmulator;
91 class ResizingModeSelector; 92 class ResizingModeSelector;
92 struct ContextMenuParams; 93 struct ContextMenuParams;
93 struct DidOverscrollParams; 94 struct DidOverscrollParams;
94 struct ResizeParams; 95 struct ResizeParams;
95 96
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 // handle composition range and composition character bounds. 359 // handle composition range and composition character bounds.
359 void UpdateCompositionInfo(bool should_update_range); 360 void UpdateCompositionInfo(bool should_update_range);
360 361
361 // Change the device ICC color profile while running a layout test. 362 // Change the device ICC color profile while running a layout test.
362 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile); 363 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile);
363 void ResetDeviceColorProfileForTesting(); 364 void ResetDeviceColorProfileForTesting();
364 365
365 // Indicates whether this widget has focus. 366 // Indicates whether this widget has focus.
366 bool has_focus() const { return has_focus_; } 367 bool has_focus() const { return has_focus_; }
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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 std::unique_ptr<scheduler::RenderWidgetSchedulingState> 764 std::unique_ptr<scheduler::RenderWidgetSchedulingState>
760 render_widget_scheduling_state_; 765 render_widget_scheduling_state_;
761 766
762 private: 767 private:
763 // When emulated, this returns original device scale factor. 768 // When emulated, this returns original device scale factor.
764 float GetOriginalDeviceScaleFactor() const; 769 float GetOriginalDeviceScaleFactor() const;
765 770
766 // Indicates whether this widget has focus. 771 // Indicates whether this widget has focus.
767 bool has_focus_; 772 bool has_focus_;
768 773
774 // This reference is set by the RenderFrame and is used to query the IME-
775 // related state from the plugin to later send to the browser.
776 PepperPluginInstanceImpl* focused_pepper_plugin_;
777
769 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 778 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
770 }; 779 };
771 780
772 } // namespace content 781 } // namespace content
773 782
774 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 783 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698