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

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

Issue 342633003: [Android] Select text when stylus first button is pressed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 6 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 void SynchronousFrameMetadata( 222 void SynchronousFrameMetadata(
223 const cc::CompositorFrameMetadata& frame_metadata); 223 const cc::CompositorFrameMetadata& frame_metadata);
224 224
225 void SetOverlayVideoMode(bool enabled); 225 void SetOverlayVideoMode(bool enabled);
226 226
227 typedef base::Callback< 227 typedef base::Callback<
228 void(const base::string16& content, int start_offset, int end_offset)> 228 void(const base::string16& content, int start_offset, int end_offset)>
229 TextSurroundingSelectionCallback; 229 TextSurroundingSelectionCallback;
230 void SetTextSurroundingSelectionCallback( 230 void SetTextSurroundingSelectionCallback(
231 const TextSurroundingSelectionCallback& callback); 231 const TextSurroundingSelectionCallback& callback);
232 bool ShouldTriggerOrUntriggerTextSelection(const ui::MotionEvent& event);
233 bool IsGestureTextSelectionTriggered() const;
232 234
233 private: 235 private:
234 void RunAckCallbacks(); 236 void RunAckCallbacks();
235 237
236 void DestroyDelegatedContent(); 238 void DestroyDelegatedContent();
237 void SwapDelegatedFrame(uint32 output_surface_id, 239 void SwapDelegatedFrame(uint32 output_surface_id,
238 scoped_ptr<cc::DelegatedFrameData> frame_data); 240 scoped_ptr<cc::DelegatedFrameData> frame_data);
239 void SendDelegatedFrameAck(uint32 output_surface_id); 241 void SendDelegatedFrameAck(uint32 output_surface_id);
240 void SendReturnedDelegatedResources(uint32 output_surface_id); 242 void SendReturnedDelegatedResources(uint32 output_surface_id);
241 243
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 LastFrameInfo(uint32 output_id, 354 LastFrameInfo(uint32 output_id,
353 scoped_ptr<cc::CompositorFrame> output_frame); 355 scoped_ptr<cc::CompositorFrame> output_frame);
354 ~LastFrameInfo(); 356 ~LastFrameInfo();
355 uint32 output_surface_id; 357 uint32 output_surface_id;
356 scoped_ptr<cc::CompositorFrame> frame; 358 scoped_ptr<cc::CompositorFrame> frame;
357 }; 359 };
358 360
359 scoped_ptr<LastFrameInfo> last_frame_info_; 361 scoped_ptr<LastFrameInfo> last_frame_info_;
360 362
361 TextSurroundingSelectionCallback text_surrounding_selection_callback_; 363 TextSurroundingSelectionCallback text_surrounding_selection_callback_;
364 bool gesture_text_selection_triggered_;
362 365
363 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 366 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
364 }; 367 };
365 368
366 } // namespace content 369 } // namespace content
367 370
368 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 371 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698