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

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

Issue 1365563002: Make channel preemption not require view contexts for hookup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wakeup_gpu
Patch Set: rebase Created 5 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 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // Compute the orientation type of the display assuming it is a desktop. 304 // Compute the orientation type of the display assuming it is a desktop.
305 static blink::WebScreenOrientationType GetOrientationTypeForDesktop( 305 static blink::WebScreenOrientationType GetOrientationTypeForDesktop(
306 const gfx::Display& display); 306 const gfx::Display& display);
307 307
308 virtual void GetScreenInfo(blink::WebScreenInfo* results) = 0; 308 virtual void GetScreenInfo(blink::WebScreenInfo* results) = 0;
309 virtual bool GetScreenColorProfile(std::vector<char>* color_profile) = 0; 309 virtual bool GetScreenColorProfile(std::vector<char>* color_profile) = 0;
310 310
311 // Gets the bounds of the window, in screen coordinates. 311 // Gets the bounds of the window, in screen coordinates.
312 virtual gfx::Rect GetBoundsInRootWindow() = 0; 312 virtual gfx::Rect GetBoundsInRootWindow() = 0;
313 313
314 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0;
315
316 // Called by the RenderFrameHost when it receives an IPC response to a 314 // Called by the RenderFrameHost when it receives an IPC response to a
317 // TextSurroundingSelectionRequest. 315 // TextSurroundingSelectionRequest.
318 virtual void OnTextSurroundingSelectionResponse(const base::string16& content, 316 virtual void OnTextSurroundingSelectionResponse(const base::string16& content,
319 size_t start_offset, 317 size_t start_offset,
320 size_t end_offset); 318 size_t end_offset);
321 319
322 // Called by the RenderWidgetHost when an ambiguous gesture is detected to 320 // Called by the RenderWidgetHost when an ambiguous gesture is detected to
323 // show the disambiguation popup bubble. 321 // show the disambiguation popup bubble.
324 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, 322 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels,
325 const SkBitmap& zoomed_bitmap); 323 const SkBitmap& zoomed_bitmap);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 base::OneShotTimer flush_input_timer_; 426 base::OneShotTimer flush_input_timer_;
429 427
430 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 428 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
431 429
432 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 430 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
433 }; 431 };
434 432
435 } // namespace content 433 } // namespace content
436 434
437 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 435 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698