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

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: Added comment and android ifdefs 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 const cc::CompositorFrameMetadata& frame_metadata); 251 const cc::CompositorFrameMetadata& frame_metadata);
252 252
253 void SetOverlayVideoMode(bool enabled); 253 void SetOverlayVideoMode(bool enabled);
254 254
255 typedef base::Callback< 255 typedef base::Callback<
256 void(const base::string16& content, int start_offset, int end_offset)> 256 void(const base::string16& content, int start_offset, int end_offset)>
257 TextSurroundingSelectionCallback; 257 TextSurroundingSelectionCallback;
258 void SetTextSurroundingSelectionCallback( 258 void SetTextSurroundingSelectionCallback(
259 const TextSurroundingSelectionCallback& callback); 259 const TextSurroundingSelectionCallback& callback);
260 260
261 void OnDidEnterFullscreen();
262 void OnDidExitFullscreen();
263
261 private: 264 private:
262 // TouchSelectionControllerClient implementation. 265 // TouchSelectionControllerClient implementation.
263 virtual bool SupportsAnimation() const OVERRIDE; 266 virtual bool SupportsAnimation() const OVERRIDE;
264 virtual void SetNeedsAnimate() OVERRIDE; 267 virtual void SetNeedsAnimate() OVERRIDE;
265 virtual void MoveCaret(const gfx::PointF& position) OVERRIDE; 268 virtual void MoveCaret(const gfx::PointF& position) OVERRIDE;
266 virtual void SelectBetweenCoordinates(const gfx::PointF& start, 269 virtual void SelectBetweenCoordinates(const gfx::PointF& start,
267 const gfx::PointF& end) OVERRIDE; 270 const gfx::PointF& end) OVERRIDE;
268 virtual void OnSelectionEvent(SelectionEventType event, 271 virtual void OnSelectionEvent(SelectionEventType event,
269 const gfx::PointF& anchor_position) OVERRIDE; 272 const gfx::PointF& anchor_position) OVERRIDE;
270 virtual scoped_ptr<TouchHandleDrawable> CreateDrawable() OVERRIDE; 273 virtual scoped_ptr<TouchHandleDrawable> CreateDrawable() OVERRIDE;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 gfx::Vector2dF last_scroll_offset_; 417 gfx::Vector2dF last_scroll_offset_;
415 418
416 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 419 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
417 420
418 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 421 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
419 }; 422 };
420 423
421 } // namespace content 424 } // namespace content
422 425
423 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 426 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698