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

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

Issue 292113008: Plumbing for browser process to access text surrounding selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@adb_install_humans
Patch Set: 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_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #if defined(OS_MACOSX) 8 #if defined(OS_MACOSX)
9 #include <OpenGL/OpenGL.h> 9 #include <OpenGL/OpenGL.h>
10 #endif 10 #endif
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // returned only if the accelerated surface size matches. 308 // returned only if the accelerated surface size matches.
309 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; 309 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0;
310 310
311 virtual void GetScreenInfo(blink::WebScreenInfo* results) = 0; 311 virtual void GetScreenInfo(blink::WebScreenInfo* results) = 0;
312 312
313 // Gets the bounds of the window, in screen coordinates. 313 // Gets the bounds of the window, in screen coordinates.
314 virtual gfx::Rect GetBoundsInRootWindow() = 0; 314 virtual gfx::Rect GetBoundsInRootWindow() = 0;
315 315
316 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; 316 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0;
317 317
318 virtual void OnTextSurroundingSelectionResponse(const base::string16& content,
319 size_t start_offset,
320 size_t end_offset) {};
321
318 #if defined(OS_ANDROID) 322 #if defined(OS_ANDROID)
319 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, 323 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect,
320 const SkBitmap& zoomed_bitmap) = 0; 324 const SkBitmap& zoomed_bitmap) = 0;
321 325
322 // Instructs the view to not drop the surface even when the view is hidden. 326 // Instructs the view to not drop the surface even when the view is hidden.
323 virtual void LockCompositingSurface() = 0; 327 virtual void LockCompositingSurface() = 0;
324 virtual void UnlockCompositingSurface() = 0; 328 virtual void UnlockCompositingSurface() = 0;
325 #endif 329 #endif
326 330
327 #if defined(OS_MACOSX) 331 #if defined(OS_MACOSX)
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 uint32 renderer_frame_number_; 425 uint32 renderer_frame_number_;
422 426
423 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; 427 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_;
424 428
425 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 429 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
426 }; 430 };
427 431
428 } // namespace content 432 } // namespace content
429 433
430 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 434 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698