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

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

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Remove physical_backing_resized param and other cr feedback Created 3 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 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 398
399 // Called by the RenderWidgetHost when an ambiguous gesture is detected to 399 // Called by the RenderWidgetHost when an ambiguous gesture is detected to
400 // show the disambiguation popup bubble. 400 // show the disambiguation popup bubble.
401 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, 401 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels,
402 const SkBitmap& zoomed_bitmap); 402 const SkBitmap& zoomed_bitmap);
403 403
404 // Called by the WebContentsImpl when a user tries to navigate a new page on 404 // Called by the WebContentsImpl when a user tries to navigate a new page on
405 // main frame. 405 // main frame.
406 virtual void OnDidNavigateMainFrameToNewPage(); 406 virtual void OnDidNavigateMainFrameToNewPage();
407 407
408 // Called by the WebContentsImpl when the fullscreen state is changed.
409 virtual void OnFullscreenStateChanged(bool is_fullscreen) {}
boliu 2017/06/20 20:54:44 how is this different from the is_fullscreen thing
steimel 2017/06/22 01:32:11 Right now, the is_fullscreen stuff is used in Rend
boliu 2017/06/23 01:51:42 My problem is that this is just too confusing. Hav
Khushal 2017/06/23 03:09:50 Agreed. I think the function will still be needed
steimel 2017/06/29 00:38:50 Changed to not have is_fullscreen param, but as Kh
410
408 // Called by WebContentsImpl to notify the view about a change in visibility 411 // Called by WebContentsImpl to notify the view about a change in visibility
409 // of context menu. The view can then perform platform specific tasks and 412 // of context menu. The view can then perform platform specific tasks and
410 // changes. 413 // changes.
411 virtual void SetShowingContextMenu(bool showing) {} 414 virtual void SetShowingContextMenu(bool showing) {}
412 415
413 // Add and remove observers for lifetime event notifications. The order in 416 // Add and remove observers for lifetime event notifications. The order in
414 // which notifications are sent to observers is undefined. Clients must be 417 // which notifications are sent to observers is undefined. Clients must be
415 // sure to remove the observer before they go away. 418 // sure to remove the observer before they go away.
416 void AddObserver(RenderWidgetHostViewBaseObserver* observer); 419 void AddObserver(RenderWidgetHostViewBaseObserver* observer);
417 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer); 420 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 496 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
494 497
495 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 498 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
496 499
497 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 500 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
498 }; 501 };
499 502
500 } // namespace content 503 } // namespace content
501 504
502 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 505 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698