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

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

Issue 14139013: Hide location bar on Javascript-initiated scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync, merge, address style nits. Created 7 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_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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/public/common/top_controls_state.h"
11 #include "ipc/ipc_sender.h" 12 #include "ipc/ipc_sender.h"
12 #include "skia/ext/refptr.h" 13 #include "skia/ext/refptr.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h " 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h "
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h"
15 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
16 17
17 class SkPicture; 18 class SkPicture;
18 struct WebPreferences; 19 struct WebPreferences;
19 20
20 namespace WebKit { 21 namespace WebKit {
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // Returns a collection of security info about |frame|. 163 // Returns a collection of security info about |frame|.
163 virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const = 0; 164 virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const = 0;
164 165
165 #if defined(OS_ANDROID) 166 #if defined(OS_ANDROID)
166 // Returns a SkPicture with the full contents of the current frame as part of 167 // Returns a SkPicture with the full contents of the current frame as part of
167 // the legacy Android WebView capture picture API. As it involves playing back 168 // the legacy Android WebView capture picture API. As it involves playing back
168 // all the drawing commands of the current frame it can have an important 169 // all the drawing commands of the current frame it can have an important
169 // performance impact and should not be used for other purposes. 170 // performance impact and should not be used for other purposes.
170 // Requires enabling the impl-side painting feature in the compositor. 171 // Requires enabling the impl-side painting feature in the compositor.
171 virtual skia::RefPtr<SkPicture> CapturePicture() = 0; 172 virtual skia::RefPtr<SkPicture> CapturePicture() = 0;
173 virtual void UpdateTopControlsState(TopControlsState constraints,
174 TopControlsState current,
175 bool animate) = 0;
172 #endif 176 #endif
173 177
174 protected: 178 protected:
175 virtual ~RenderView() {} 179 virtual ~RenderView() {}
176 180
177 private: 181 private:
178 // This interface should only be implemented inside content. 182 // This interface should only be implemented inside content.
179 friend class RenderViewImpl; 183 friend class RenderViewImpl;
180 RenderView() {} 184 RenderView() {}
181 }; 185 };
182 186
183 } // namespace content 187 } // namespace content
184 188
185 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 189 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « content/public/common/top_controls_state_list.h ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698