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

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

Issue 2157793002: Remove ContentViewCore::RequestTextSurroundingSelection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the review comments. 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_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 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 361
362 // Compute the orientation type of the display assuming it is a desktop. 362 // Compute the orientation type of the display assuming it is a desktop.
363 static blink::WebScreenOrientationType GetOrientationTypeForDesktop( 363 static blink::WebScreenOrientationType GetOrientationTypeForDesktop(
364 const display::Display& display); 364 const display::Display& display);
365 365
366 virtual void GetScreenInfo(blink::WebScreenInfo* results) = 0; 366 virtual void GetScreenInfo(blink::WebScreenInfo* results) = 0;
367 367
368 // Gets the bounds of the window, in screen coordinates. 368 // Gets the bounds of the window, in screen coordinates.
369 virtual gfx::Rect GetBoundsInRootWindow() = 0; 369 virtual gfx::Rect GetBoundsInRootWindow() = 0;
370 370
371 // Called by the RenderFrameHost when it receives an IPC response to a
372 // TextSurroundingSelectionRequest.
373 virtual void OnTextSurroundingSelectionResponse(const base::string16& content,
374 size_t start_offset,
375 size_t end_offset);
376
377 // Called by the RenderWidgetHost when an ambiguous gesture is detected to 371 // Called by the RenderWidgetHost when an ambiguous gesture is detected to
378 // show the disambiguation popup bubble. 372 // show the disambiguation popup bubble.
379 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, 373 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels,
380 const SkBitmap& zoomed_bitmap); 374 const SkBitmap& zoomed_bitmap);
381 375
382 // Called by the WebContentsImpl when a user tries to navigate a new page on 376 // Called by the WebContentsImpl when a user tries to navigate a new page on
383 // main frame. 377 // main frame.
384 virtual void OnDidNavigateMainFrameToNewPage(); 378 virtual void OnDidNavigateMainFrameToNewPage();
385 379
386 // Instructs the view to not drop the surface even when the view is hidden. 380 // Instructs the view to not drop the surface even when the view is hidden.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 464 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
471 465
472 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 466 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
473 467
474 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 468 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
475 }; 469 };
476 470
477 } // namespace content 471 } // namespace content
478 472
479 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 473 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698