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

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

Issue 2658293002: content: Remove Lock/Unlock CompositingSurface API from RWH. (Closed)
Patch Set: last_frame_info Created 3 years, 10 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 402
403 // Called by the RenderWidgetHost when an ambiguous gesture is detected to 403 // Called by the RenderWidgetHost when an ambiguous gesture is detected to
404 // show the disambiguation popup bubble. 404 // show the disambiguation popup bubble.
405 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, 405 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels,
406 const SkBitmap& zoomed_bitmap); 406 const SkBitmap& zoomed_bitmap);
407 407
408 // Called by the WebContentsImpl when a user tries to navigate a new page on 408 // Called by the WebContentsImpl when a user tries to navigate a new page on
409 // main frame. 409 // main frame.
410 virtual void OnDidNavigateMainFrameToNewPage(); 410 virtual void OnDidNavigateMainFrameToNewPage();
411 411
412 // Instructs the view to not drop the surface even when the view is hidden.
413 virtual void LockCompositingSurface() = 0;
414 virtual void UnlockCompositingSurface() = 0;
415
416 // Add and remove observers for lifetime event notifications. The order in 412 // Add and remove observers for lifetime event notifications. The order in
417 // which notifications are sent to observers is undefined. Clients must be 413 // which notifications are sent to observers is undefined. Clients must be
418 // sure to remove the observer before they go away. 414 // sure to remove the observer before they go away.
419 void AddObserver(RenderWidgetHostViewBaseObserver* observer); 415 void AddObserver(RenderWidgetHostViewBaseObserver* observer);
420 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer); 416 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer);
421 417
422 // Returns a reference to the current instance of TextInputManager. The 418 // Returns a reference to the current instance of TextInputManager. The
423 // reference is obtained from RenderWidgetHostDelegate. The first time a non- 419 // reference is obtained from RenderWidgetHostDelegate. The first time a non-
424 // null reference is obtained, its value is cached in |text_input_manager_| 420 // null reference is obtained, its value is cached in |text_input_manager_|
425 // and this view is registered with it. The RWHV will unregister from the 421 // and this view is registered with it. The RWHV will unregister from the
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 483 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
488 484
489 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 485 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
490 486
491 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 487 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
492 }; 488 };
493 489
494 } // namespace content 490 } // namespace content
495 491
496 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 492 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698