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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 618013003: Support fullscreen for non-video elements in the WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactorFullscreenNonMedia
Patch Set: Removed verbose comment Created 6 years, 2 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 const cc::CompositorFrameMetadata& frame_metadata); 264 const cc::CompositorFrameMetadata& frame_metadata);
265 265
266 void SetOverlayVideoMode(bool enabled); 266 void SetOverlayVideoMode(bool enabled);
267 267
268 typedef base::Callback< 268 typedef base::Callback<
269 void(const base::string16& content, int start_offset, int end_offset)> 269 void(const base::string16& content, int start_offset, int end_offset)>
270 TextSurroundingSelectionCallback; 270 TextSurroundingSelectionCallback;
271 void SetTextSurroundingSelectionCallback( 271 void SetTextSurroundingSelectionCallback(
272 const TextSurroundingSelectionCallback& callback); 272 const TextSurroundingSelectionCallback& callback);
273 273
274 void OnDidEnterFullscreen();
275 void OnDidExitFullscreen();
276
274 private: 277 private:
275 // TouchSelectionControllerClient implementation. 278 // TouchSelectionControllerClient implementation.
276 virtual bool SupportsAnimation() const OVERRIDE; 279 virtual bool SupportsAnimation() const OVERRIDE;
277 virtual void SetNeedsAnimate() OVERRIDE; 280 virtual void SetNeedsAnimate() OVERRIDE;
278 virtual void MoveCaret(const gfx::PointF& position) OVERRIDE; 281 virtual void MoveCaret(const gfx::PointF& position) OVERRIDE;
279 virtual void SelectBetweenCoordinates(const gfx::PointF& start, 282 virtual void SelectBetweenCoordinates(const gfx::PointF& start,
280 const gfx::PointF& end) OVERRIDE; 283 const gfx::PointF& end) OVERRIDE;
281 virtual void OnSelectionEvent(SelectionEventType event, 284 virtual void OnSelectionEvent(SelectionEventType event,
282 const gfx::PointF& anchor_position) OVERRIDE; 285 const gfx::PointF& anchor_position) OVERRIDE;
283 virtual scoped_ptr<TouchHandleDrawable> CreateDrawable() OVERRIDE; 286 virtual scoped_ptr<TouchHandleDrawable> CreateDrawable() OVERRIDE;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 gfx::Vector2dF last_scroll_offset_; 430 gfx::Vector2dF last_scroll_offset_;
428 431
429 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 432 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
430 433
431 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 434 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
432 }; 435 };
433 436
434 } // namespace content 437 } // namespace content
435 438
436 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 439 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698