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

Side by Side Diff: content/browser/android/content_view_core_impl.h

Issue 714003002: Allow changing top controls height (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 6 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 void SetAccessibilityEnabledInternal(bool enabled); 260 void SetAccessibilityEnabledInternal(bool enabled);
261 261
262 bool IsFullscreenRequiredForOrientationLock() const; 262 bool IsFullscreenRequiredForOrientationLock() const;
263 263
264 // -------------------------------------------------------------------------- 264 // --------------------------------------------------------------------------
265 // Methods called from native code 265 // Methods called from native code
266 // -------------------------------------------------------------------------- 266 // --------------------------------------------------------------------------
267 267
268 gfx::Size GetPhysicalBackingSize() const; 268 gfx::Size GetPhysicalBackingSize() const;
269 gfx::Size GetViewportSizeDip() const; 269 gfx::Size GetViewportSizeDip() const;
270 float GetTopControlsLayoutHeightDip() const; 270 bool DoTopControlsShrinkBlinkSize() const;
271 float GetTopControlsHeightDip() const;
271 272
272 void AttachLayer(scoped_refptr<cc::Layer> layer); 273 void AttachLayer(scoped_refptr<cc::Layer> layer);
273 void RemoveLayer(scoped_refptr<cc::Layer> layer); 274 void RemoveLayer(scoped_refptr<cc::Layer> layer);
274 275
275 void MoveRangeSelectionExtent(const gfx::PointF& extent); 276 void MoveRangeSelectionExtent(const gfx::PointF& extent);
276 277
277 void SelectBetweenCoordinates(const gfx::PointF& base, 278 void SelectBetweenCoordinates(const gfx::PointF& base,
278 const gfx::PointF& extent); 279 const gfx::PointF& extent);
279 280
280 private: 281 private:
(...skipping 13 matching lines...) Expand all
294 // -------------------------------------------------------------------------- 295 // --------------------------------------------------------------------------
295 296
296 void InitWebContents(); 297 void InitWebContents();
297 298
298 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid() const; 299 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid() const;
299 300
300 blink::WebGestureEvent MakeGestureEvent( 301 blink::WebGestureEvent MakeGestureEvent(
301 blink::WebInputEvent::Type type, int64 time_ms, float x, float y) const; 302 blink::WebInputEvent::Type type, int64 time_ms, float x, float y) const;
302 303
303 gfx::Size GetViewportSizePix() const; 304 gfx::Size GetViewportSizePix() const;
304 int GetTopControlsLayoutHeightPix() const; 305 int GetTopControlsHeightPix() const;
305 306
306 void SendGestureEvent(const blink::WebGestureEvent& event); 307 void SendGestureEvent(const blink::WebGestureEvent& event);
307 308
308 // Update focus state of the RenderWidgetHostView. 309 // Update focus state of the RenderWidgetHostView.
309 void SetFocusInternal(bool focused); 310 void SetFocusInternal(bool focused);
310 311
311 // Send device_orientation_ to renderer. 312 // Send device_orientation_ to renderer.
312 void SendOrientationChangeEventInternal(); 313 void SendOrientationChangeEventInternal();
313 314
314 float dpi_scale() const { return dpi_scale_; } 315 float dpi_scale() const { return dpi_scale_; }
(...skipping 29 matching lines...) Expand all
344 java_bridge_dispatcher_host_; 345 java_bridge_dispatcher_host_;
345 346
346 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 347 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
347 }; 348 };
348 349
349 bool RegisterContentViewCore(JNIEnv* env); 350 bool RegisterContentViewCore(JNIEnv* env);
350 351
351 } // namespace content 352 } // namespace content
352 353
353 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 354 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698