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

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

Issue 2855353002: Make Paste Popup use selection rect for positioning (Closed)
Patch Set: fix typo Created 3 years, 7 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 ime_adapter_android_ = ime_adapter; 246 ime_adapter_android_ = ime_adapter;
247 } 247 }
248 void set_selection_popup_controller(SelectionPopupController* controller) { 248 void set_selection_popup_controller(SelectionPopupController* controller) {
249 selection_popup_controller_ = controller; 249 selection_popup_controller_ = controller;
250 } 250 }
251 251
252 base::WeakPtr<RenderWidgetHostViewAndroid> GetWeakPtrAndroid(); 252 base::WeakPtr<RenderWidgetHostViewAndroid> GetWeakPtrAndroid();
253 253
254 bool OnTouchEvent(const ui::MotionEvent& event); 254 bool OnTouchEvent(const ui::MotionEvent& event);
255 bool OnTouchHandleEvent(const ui::MotionEvent& event); 255 bool OnTouchHandleEvent(const ui::MotionEvent& event);
256 int GetTouchHandleHeight();
256 void ResetGestureDetection(); 257 void ResetGestureDetection();
257 void SetDoubleTapSupportEnabled(bool enabled); 258 void SetDoubleTapSupportEnabled(bool enabled);
258 void SetMultiTouchZoomSupportEnabled(bool enabled); 259 void SetMultiTouchZoomSupportEnabled(bool enabled);
259 260
260 void WasResized(); 261 void WasResized();
261 262
262 bool HasValidFrame() const; 263 bool HasValidFrame() const;
263 264
264 void MoveCaret(const gfx::Point& point); 265 void MoveCaret(const gfx::Point& point);
265 void ShowContextMenuAtPoint(const gfx::Point& point); 266 void ShowContextMenuAtPoint(const gfx::Point& point);
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 base::ObserverList<DestructionObserver> destruction_observers_; 426 base::ObserverList<DestructionObserver> destruction_observers_;
426 427
427 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 428 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
428 429
429 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 430 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
430 }; 431 };
431 432
432 } // namespace content 433 } // namespace content
433 434
434 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 435 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698