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

Side by Side Diff: android_webview/native/aw_contents.h

Issue 23899004: Use contents size for android_webview layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 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 | Annotate | Revision Log
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 ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 bool finished) OVERRIDE; 140 bool finished) OVERRIDE;
141 // IconHelper::Listener implementation. 141 // IconHelper::Listener implementation.
142 virtual void OnReceivedIcon(const GURL& icon_url, 142 virtual void OnReceivedIcon(const GURL& icon_url,
143 const SkBitmap& bitmap) OVERRIDE; 143 const SkBitmap& bitmap) OVERRIDE;
144 virtual void OnReceivedTouchIconUrl(const std::string& url, 144 virtual void OnReceivedTouchIconUrl(const std::string& url,
145 const bool precomposed) OVERRIDE; 145 const bool precomposed) OVERRIDE;
146 146
147 // AwRenderViewHostExtClient implementation. 147 // AwRenderViewHostExtClient implementation.
148 virtual void OnWebLayoutPageScaleFactorChanged( 148 virtual void OnWebLayoutPageScaleFactorChanged(
149 float page_scale_factor) OVERRIDE; 149 float page_scale_factor) OVERRIDE;
150 virtual void OnWebLayoutContentsSizeChanged(
151 const gfx::Size& contents_size) OVERRIDE;
150 152
151 // BrowserViewRenderer::Client implementation. 153 // BrowserViewRenderer::Client implementation.
152 virtual bool RequestDrawGL(jobject canvas) OVERRIDE; 154 virtual bool RequestDrawGL(jobject canvas) OVERRIDE;
153 virtual void PostInvalidate() OVERRIDE; 155 virtual void PostInvalidate() OVERRIDE;
154 virtual void UpdateGlobalVisibleRect() OVERRIDE; 156 virtual void UpdateGlobalVisibleRect() OVERRIDE;
155 virtual void OnNewPicture() OVERRIDE; 157 virtual void OnNewPicture() OVERRIDE;
156 virtual gfx::Point GetLocationOnScreen() OVERRIDE; 158 virtual gfx::Point GetLocationOnScreen() OVERRIDE;
157 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) OVERRIDE; 159 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) OVERRIDE;
158 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) OVERRIDE; 160 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) OVERRIDE;
159 161
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 std::list<OriginCallback> pending_geolocation_prompts_; 201 std::list<OriginCallback> pending_geolocation_prompts_;
200 202
201 DISALLOW_COPY_AND_ASSIGN(AwContents); 203 DISALLOW_COPY_AND_ASSIGN(AwContents);
202 }; 204 };
203 205
204 bool RegisterAwContents(JNIEnv* env); 206 bool RegisterAwContents(JNIEnv* env);
205 207
206 } // namespace android_webview 208 } // namespace android_webview
207 209
208 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 210 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698