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

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

Issue 1456753002: Compute the popup location/size correctly when use-zoom-for-dsf is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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_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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 // Returns |renderer_preferences_.accept_languages| value. 118 // Returns |renderer_preferences_.accept_languages| value.
119 virtual const std::string& GetAcceptLanguages() const = 0; 119 virtual const std::string& GetAcceptLanguages() const = 0;
120 120
121 #if defined(OS_ANDROID) 121 #if defined(OS_ANDROID)
122 virtual void UpdateTopControlsState(TopControlsState constraints, 122 virtual void UpdateTopControlsState(TopControlsState constraints,
123 TopControlsState current, 123 TopControlsState current,
124 bool animate) = 0; 124 bool animate) = 0;
125 #endif 125 #endif
126 126
127 // Converts the |rect| from Blink's Viewport coordinates to the 127 // Converts the |rect| from Blink's Viewport coordinates to Window
128 // coordinates in the native window used to display the content, in 128 // coordinates. See the comment on
129 // DIP. They're identical in tradional world, but will differ when 129 // WebWidgetClient::convertViewportToWindow() for more details.
130 // use-zoom-for-dsf feature is eanbled, and Viewport coordinates
131 // becomes DSF times larger than window coordinates.
132 virtual void convertViewportToWindow(blink::WebRect* rect) = 0; 130 virtual void convertViewportToWindow(blink::WebRect* rect) = 0;
133 131
134 protected: 132 protected:
135 ~RenderView() override {} 133 ~RenderView() override {}
136 134
137 private: 135 private:
138 // This interface should only be implemented inside content. 136 // This interface should only be implemented inside content.
139 friend class RenderViewImpl; 137 friend class RenderViewImpl;
140 RenderView() {} 138 RenderView() {}
141 }; 139 };
142 140
143 } // namespace content 141 } // namespace content
144 142
145 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 143 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698