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

Side by Side Diff: content/public/renderer/render_view.h

Issue 1572703002: Use the screen info's scale factor to scale the drag image (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | content/renderer/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_RENDERER_RENDER_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // Returns the main RenderFrame. 69 // Returns the main RenderFrame.
70 virtual RenderFrame* GetMainRenderFrame() = 0; 70 virtual RenderFrame* GetMainRenderFrame() = 0;
71 71
72 // Get the routing ID of the view. 72 // Get the routing ID of the view.
73 virtual int GetRoutingID() const = 0; 73 virtual int GetRoutingID() const = 0;
74 74
75 // Returns the size of the view. 75 // Returns the size of the view.
76 virtual gfx::Size GetSize() const = 0; 76 virtual gfx::Size GetSize() const = 0;
77 77
78 // Returns the device scale factor of the display the render view is in.
79 virtual float GetDeviceScaleFactor() const = 0;
80
78 // Gets WebKit related preferences associated with this view. 81 // Gets WebKit related preferences associated with this view.
79 virtual WebPreferences& GetWebkitPreferences() = 0; 82 virtual WebPreferences& GetWebkitPreferences() = 0;
80 83
81 // Overrides the WebKit related preferences associated with this view. Note 84 // Overrides the WebKit related preferences associated with this view. Note
82 // that the browser process may update the preferences at any time. 85 // that the browser process may update the preferences at any time.
83 virtual void SetWebkitPreferences(const WebPreferences& preferences) = 0; 86 virtual void SetWebkitPreferences(const WebPreferences& preferences) = 0;
84 87
85 // Returns the associated WebView. May return NULL when the view is closing. 88 // Returns the associated WebView. May return NULL when the view is closing.
86 virtual blink::WebView* GetWebView() = 0; 89 virtual blink::WebView* GetWebView() = 0;
87 90
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 145
143 private: 146 private:
144 // This interface should only be implemented inside content. 147 // This interface should only be implemented inside content.
145 friend class RenderViewImpl; 148 friend class RenderViewImpl;
146 RenderView() {} 149 RenderView() {}
147 }; 150 };
148 151
149 } // namespace content 152 } // namespace content
150 153
151 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 154 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698