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

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

Issue 1455143004: Use the window coordinate for the autofill bounds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo 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"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/public/common/top_controls_state.h" 13 #include "content/public/common/top_controls_state.h"
14 #include "ipc/ipc_sender.h" 14 #include "ipc/ipc_sender.h"
15 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" 15 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
16 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
17 17
18 namespace blink { 18 namespace blink {
19 class WebElement; 19 class WebElement;
20 class WebFrame; 20 class WebFrame;
21 class WebLocalFrame; 21 class WebLocalFrame;
22 class WebNode; 22 class WebNode;
23 class WebString; 23 class WebString;
24 class WebURLRequest; 24 class WebURLRequest;
25 class WebView; 25 class WebView;
26 struct WebContextMenuData; 26 struct WebContextMenuData;
27 struct WebRect;
27 } 28 }
28 29
29 namespace gfx { 30 namespace gfx {
30 class Point; 31 class Point;
31 class Size; 32 class Size;
32 } 33 }
33 34
34 namespace content { 35 namespace content {
35 36
36 class RenderFrame; 37 class RenderFrame;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 117
117 // Returns |renderer_preferences_.accept_languages| value. 118 // Returns |renderer_preferences_.accept_languages| value.
118 virtual const std::string& GetAcceptLanguages() const = 0; 119 virtual const std::string& GetAcceptLanguages() const = 0;
119 120
120 #if defined(OS_ANDROID) 121 #if defined(OS_ANDROID)
121 virtual void UpdateTopControlsState(TopControlsState constraints, 122 virtual void UpdateTopControlsState(TopControlsState constraints,
122 TopControlsState current, 123 TopControlsState current,
123 bool animate) = 0; 124 bool animate) = 0;
124 #endif 125 #endif
125 126
127 // Converts the |rect| from Blink's Viewport coordinates to the
128 // coordinates in the native window used to display the content, in
129 // DIP. They're identical in tradional world, but will differ when
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;
133
126 protected: 134 protected:
127 ~RenderView() override {} 135 ~RenderView() override {}
128 136
129 private: 137 private:
130 // This interface should only be implemented inside content. 138 // This interface should only be implemented inside content.
131 friend class RenderViewImpl; 139 friend class RenderViewImpl;
132 RenderView() {} 140 RenderView() {}
133 }; 141 };
134 142
135 } // namespace content 143 } // namespace content
136 144
137 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 145 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « components/autofill/content/renderer/password_generation_agent.cc ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698