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

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

Issue 351683002: Adds link disambiguation popup support to Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: responding to sky's last round of feedback Created 6 years, 3 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 322
323 // Gets the bounds of the window, in screen coordinates. 323 // Gets the bounds of the window, in screen coordinates.
324 virtual gfx::Rect GetBoundsInRootWindow() = 0; 324 virtual gfx::Rect GetBoundsInRootWindow() = 0;
325 325
326 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; 326 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0;
327 327
328 virtual void OnTextSurroundingSelectionResponse(const base::string16& content, 328 virtual void OnTextSurroundingSelectionResponse(const base::string16& content,
329 size_t start_offset, 329 size_t start_offset,
330 size_t end_offset) {}; 330 size_t end_offset) {};
331 331
332 #if defined(OS_ANDROID) 332 #if defined(OS_ANDROID) || defined(TOOLKIT_VIEWS)
333 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, 333 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect,
334 const SkBitmap& zoomed_bitmap) = 0; 334 const SkBitmap& zoomed_bitmap) = 0;
335 #endif
335 336
337 #if defined(OS_ANDROID)
336 // Instructs the view to not drop the surface even when the view is hidden. 338 // Instructs the view to not drop the surface even when the view is hidden.
337 virtual void LockCompositingSurface() = 0; 339 virtual void LockCompositingSurface() = 0;
338 virtual void UnlockCompositingSurface() = 0; 340 virtual void UnlockCompositingSurface() = 0;
339 #endif 341 #endif
340 342
341 #if defined(OS_MACOSX) 343 #if defined(OS_MACOSX)
342 // Does any event handling necessary for plugin IME; should be called after 344 // Does any event handling necessary for plugin IME; should be called after
343 // the plugin has already had a chance to process the event. If plugin IME is 345 // the plugin has already had a chance to process the event. If plugin IME is
344 // not enabled, this is a no-op, so it is always safe to call. 346 // not enabled, this is a no-op, so it is always safe to call.
345 // Returns true if the event was handled by IME. 347 // Returns true if the event was handled by IME.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; 436 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_;
435 437
436 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 438 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
437 439
438 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 440 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
439 }; 441 };
440 442
441 } // namespace content 443 } // namespace content
442 444
443 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 445 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698