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

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

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Re-add feature flag Created 3 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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 393
394 // Called by the RenderWidgetHost when an ambiguous gesture is detected to 394 // Called by the RenderWidgetHost when an ambiguous gesture is detected to
395 // show the disambiguation popup bubble. 395 // show the disambiguation popup bubble.
396 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, 396 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels,
397 const SkBitmap& zoomed_bitmap); 397 const SkBitmap& zoomed_bitmap);
398 398
399 // Called by the WebContentsImpl when a user tries to navigate a new page on 399 // Called by the WebContentsImpl when a user tries to navigate a new page on
400 // main frame. 400 // main frame.
401 virtual void OnDidNavigateMainFrameToNewPage(); 401 virtual void OnDidNavigateMainFrameToNewPage();
402 402
403 // Called by the WebContentsImpl when the fullscreen state is changed.
404 virtual void OnFullscreenStateChanged() {}
405
403 // Called by WebContentsImpl to notify the view about a change in visibility 406 // Called by WebContentsImpl to notify the view about a change in visibility
404 // of context menu. The view can then perform platform specific tasks and 407 // of context menu. The view can then perform platform specific tasks and
405 // changes. 408 // changes.
406 virtual void SetShowingContextMenu(bool showing) {} 409 virtual void SetShowingContextMenu(bool showing) {}
407 410
408 // Add and remove observers for lifetime event notifications. The order in 411 // Add and remove observers for lifetime event notifications. The order in
409 // which notifications are sent to observers is undefined. Clients must be 412 // which notifications are sent to observers is undefined. Clients must be
410 // sure to remove the observer before they go away. 413 // sure to remove the observer before they go away.
411 void AddObserver(RenderWidgetHostViewBaseObserver* observer); 414 void AddObserver(RenderWidgetHostViewBaseObserver* observer);
412 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer); 415 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 494 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
492 495
493 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 496 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
494 497
495 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 498 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
496 }; 499 };
497 500
498 } // namespace content 501 } // namespace content
499 502
500 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 503 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698