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

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

Issue 2089933002: Context Menu Refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing nits Created 4 years, 5 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 namespace blink { 50 namespace blink {
51 class WebExternalTextureLayer; 51 class WebExternalTextureLayer;
52 class WebTouchEvent; 52 class WebTouchEvent;
53 class WebMouseEvent; 53 class WebMouseEvent;
54 } 54 }
55 55
56 namespace content { 56 namespace content {
57 class ContentViewCoreImpl; 57 class ContentViewCoreImpl;
58 class ContentViewCoreObserver; 58 class ContentViewCoreObserver;
59 class ContextMenuParams;
59 class OverscrollControllerAndroid; 60 class OverscrollControllerAndroid;
60 class RenderWidgetHost; 61 class RenderWidgetHost;
61 class RenderWidgetHostImpl; 62 class RenderWidgetHostImpl;
63 class SelectActionMode;
62 class SynchronousCompositorHost; 64 class SynchronousCompositorHost;
63 struct DidOverscrollParams; 65 struct DidOverscrollParams;
64 struct NativeWebKeyboardEvent; 66 struct NativeWebKeyboardEvent;
65 struct TextInputState; 67 struct TextInputState;
66 68
67 // ----------------------------------------------------------------------------- 69 // -----------------------------------------------------------------------------
68 // See comments in render_widget_host_view.h about this class and its members. 70 // See comments in render_widget_host_view.h about this class and its members.
69 // ----------------------------------------------------------------------------- 71 // -----------------------------------------------------------------------------
70 class CONTENT_EXPORT RenderWidgetHostViewAndroid 72 class CONTENT_EXPORT RenderWidgetHostViewAndroid
71 : public RenderWidgetHostViewBase, 73 : public RenderWidgetHostViewBase,
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 void DismissTextHandles(); 248 void DismissTextHandles();
247 void SetTextHandlesTemporarilyHidden(bool hidden); 249 void SetTextHandlesTemporarilyHidden(bool hidden);
248 void OnShowingPastePopup(const gfx::PointF& point); 250 void OnShowingPastePopup(const gfx::PointF& point);
249 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip); 251 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip);
250 252
251 SynchronousCompositorHost* GetSynchronousCompositor(); 253 SynchronousCompositorHost* GetSynchronousCompositor();
252 void SynchronousFrameMetadata( 254 void SynchronousFrameMetadata(
253 const cc::CompositorFrameMetadata& frame_metadata); 255 const cc::CompositorFrameMetadata& frame_metadata);
254 256
255 void SetOverlayVideoMode(bool enabled); 257 void SetOverlayVideoMode(bool enabled);
258 void CreateSelectActionMode(const ContextMenuParams& params);
256 259
257 typedef base::Callback< 260 typedef base::Callback<
258 void(const base::string16& content, int start_offset, int end_offset)> 261 void(const base::string16& content, int start_offset, int end_offset)>
259 TextSurroundingSelectionCallback; 262 TextSurroundingSelectionCallback;
260 void SetTextSurroundingSelectionCallback( 263 void SetTextSurroundingSelectionCallback(
261 const TextSurroundingSelectionCallback& callback); 264 const TextSurroundingSelectionCallback& callback);
262 265
263 static void OnContextLost(); 266 static void OnContextLost();
264 267
265 private: 268 private:
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 std::unique_ptr<cc::CompositorFrame> frame; 404 std::unique_ptr<cc::CompositorFrame> frame;
402 }; 405 };
403 406
404 std::unique_ptr<LastFrameInfo> last_frame_info_; 407 std::unique_ptr<LastFrameInfo> last_frame_info_;
405 408
406 TextSurroundingSelectionCallback text_surrounding_selection_callback_; 409 TextSurroundingSelectionCallback text_surrounding_selection_callback_;
407 410
408 // The last scroll offset of the view. 411 // The last scroll offset of the view.
409 gfx::Vector2dF last_scroll_offset_; 412 gfx::Vector2dF last_scroll_offset_;
410 413
414 std::unique_ptr<SelectActionMode> select_action_mode_;
411 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 415 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
412 416
413 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 417 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
414 }; 418 };
415 419
416 } // namespace content 420 } // namespace content
417 421
418 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 422 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698