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

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: 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 viewport coordinates to window coordinates.
bokan 2015/12/03 20:49:20 Could you add a bit of description here (or elsewh
oshima 2015/12/03 21:58:17 I updated here for now, but I think we should upda
128 virtual void convertViewportToWindow(blink::WebRect* rect) = 0;
129
126 protected: 130 protected:
127 ~RenderView() override {} 131 ~RenderView() override {}
128 132
129 private: 133 private:
130 // This interface should only be implemented inside content. 134 // This interface should only be implemented inside content.
131 friend class RenderViewImpl; 135 friend class RenderViewImpl;
132 RenderView() {} 136 RenderView() {}
133 }; 137 };
134 138
135 } // namespace content 139 } // namespace content
136 140
137 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 141 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698