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

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

Issue 2400883003: RenderWidget::windowRect and viewRect should apply device emulation transform. (Closed)
Patch Set: Created 4 years, 2 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 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 std::unique_ptr<blink::scheduler::RenderWidgetSchedulingState> 793 std::unique_ptr<blink::scheduler::RenderWidgetSchedulingState>
794 render_widget_scheduling_state_; 794 render_widget_scheduling_state_;
795 795
796 // Mouse Lock dispatcher attached to this view. 796 // Mouse Lock dispatcher attached to this view.
797 std::unique_ptr<RenderWidgetMouseLockDispatcher> mouse_lock_dispatcher_; 797 std::unique_ptr<RenderWidgetMouseLockDispatcher> mouse_lock_dispatcher_;
798 798
799 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. 799 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface.
800 std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; 800 std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_;
801 801
802 private: 802 private:
803 // Applies/Removes the DevTools device emulation transformation to/from a
804 // window rect.
805 void ScreenRectToEmulatedIfNeeded(blink::WebRect* window_rect) const;
806 void EmulatedToScreenRectIfNeeded(blink::WebRect* window_rect) const;
807
803 // Indicates whether this widget has focus. 808 // Indicates whether this widget has focus.
804 bool has_focus_; 809 bool has_focus_;
805 810
806 // This reference is set by the RenderFrame and is used to query the IME- 811 // This reference is set by the RenderFrame and is used to query the IME-
807 // related state from the plugin to later send to the browser. 812 // related state from the plugin to later send to the browser.
808 PepperPluginInstanceImpl* focused_pepper_plugin_; 813 PepperPluginInstanceImpl* focused_pepper_plugin_;
809 814
810 // Stores edit commands associated to the next key event. 815 // Stores edit commands associated to the next key event.
811 // Will be cleared as soon as the next key event is processed. 816 // Will be cleared as soon as the next key event is processed.
812 EditCommands edit_commands_; 817 EditCommands edit_commands_;
813 818
814 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 819 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
815 }; 820 };
816 821
817 } // namespace content 822 } // namespace content
818 823
819 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 824 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/devtools/render_widget_screen_metrics_emulator.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698