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

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

Issue 1978763004: Drag image should always use the real device scale factor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 // are sent to each frame in the list for events such as changing 750 // are sent to each frame in the list for events such as changing
751 // visibility state for example. 751 // visibility state for example.
752 base::ObserverList<RenderFrameImpl> render_frames_; 752 base::ObserverList<RenderFrameImpl> render_frames_;
753 753
754 bool has_host_context_menu_location_; 754 bool has_host_context_menu_location_;
755 gfx::Point host_context_menu_location_; 755 gfx::Point host_context_menu_location_;
756 756
757 std::unique_ptr<scheduler::RenderWidgetSchedulingState> 757 std::unique_ptr<scheduler::RenderWidgetSchedulingState>
758 render_widget_scheduling_state_; 758 render_widget_scheduling_state_;
759 759
760 private:
761 // When emulated, this returns original device scale factor. 760 // When emulated, this returns original device scale factor.
762 float GetOriginalDeviceScaleFactor() const; 761 float GetOriginalDeviceScaleFactor() const;
763 762
763 private:
764 // Indicates whether this widget has focus. 764 // Indicates whether this widget has focus.
765 bool has_focus_; 765 bool has_focus_;
766 766
767 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 767 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
768 }; 768 };
769 769
770 } // namespace content 770 } // namespace content
771 771
772 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 772 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | third_party/WebKit/Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698