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

Side by Side Diff: third_party/WebKit/public/platform/WebLayerTreeView.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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual void SetDeviceScaleFactor(float) {} 76 virtual void SetDeviceScaleFactor(float) {}
77 77
78 // Sets the background color for the viewport. 78 // Sets the background color for the viewport.
79 virtual void SetBackgroundColor(WebColor) {} 79 virtual void SetBackgroundColor(WebColor) {}
80 80
81 // Sets whether this view is visible. In threaded mode, a view that is not 81 // Sets whether this view is visible. In threaded mode, a view that is not
82 // visible will not composite or trigger updateAnimations() or layout() calls 82 // visible will not composite or trigger updateAnimations() or layout() calls
83 // until it becomes visible. 83 // until it becomes visible.
84 virtual void SetVisible(bool) {} 84 virtual void SetVisible(bool) {}
85 85
86 // Sets whether this view is in fullscreen mode.
87 virtual void SetIsFullscreen(bool) {}
88
86 // Sets the current page scale factor and minimum / maximum limits. Both 89 // Sets the current page scale factor and minimum / maximum limits. Both
87 // limits are initially 1 (no page scale allowed). 90 // limits are initially 1 (no page scale allowed).
88 virtual void SetPageScaleFactorAndLimits(float page_scale_factor, 91 virtual void SetPageScaleFactorAndLimits(float page_scale_factor,
89 float minimum, 92 float minimum,
90 float maximum) {} 93 float maximum) {}
91 94
92 // Starts an animation of the page scale to a target scale factor and scroll 95 // Starts an animation of the page scale to a target scale factor and scroll
93 // offset. 96 // offset.
94 // If useAnchor is true, destination is a point on the screen that will remain 97 // If useAnchor is true, destination is a point on the screen that will remain
95 // fixed for the duration of the animation. 98 // fixed for the duration of the animation.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 200
198 virtual void RequestBeginMainFrameNotExpected(bool new_state) {} 201 virtual void RequestBeginMainFrameNotExpected(bool new_state) {}
199 202
200 virtual void RequestDecode(const PaintImage& image, 203 virtual void RequestDecode(const PaintImage& image,
201 const base::Callback<void(bool)>& callback) {} 204 const base::Callback<void(bool)>& callback) {}
202 }; 205 };
203 206
204 } // namespace blink 207 } // namespace blink
205 208
206 #endif // WebLayerTreeView_h 209 #endif // WebLayerTreeView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698