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

Unified Diff: public/platform/WebTopControlsState.h

Issue 893683003: Implement top controls show/hide functionality for main thread scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix minor macro issue Created 5 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 side-by-side diff with in-line comments
Download patch
Index: public/platform/WebTopControlsState.h
diff --git a/public/platform/WebImageGenerator.h b/public/platform/WebTopControlsState.h
similarity index 82%
copy from public/platform/WebImageGenerator.h
copy to public/platform/WebTopControlsState.h
index bb17f4d6df96a2dcc73efa069d2c6646a2338ab9..b67820222e80ab4a63fc7c58fb20560e917de0f6 100644
--- a/public/platform/WebImageGenerator.h
+++ b/public/platform/WebTopControlsState.h
@@ -28,21 +28,19 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebImageGenerator_h
-#define WebImageGenerator_h
-
-#include "WebCommon.h"
-
-class SkData;
-class SkImageGenerator;
+#ifndef WebTopControlsState_h
+#define WebTopControlsState_h
namespace blink {
-class BLINK_EXPORT WebImageGenerator {
-public:
- static SkImageGenerator* create(SkData*);
+// Represents Top Controls State. Values should be equivalent to
+// Chromium and CC versions namely: |content::TopControlsState|, and
+// |cc::TopControlsState|
+enum WebTopControlsState {
+ WebTopControlsShown = 1,
+ WebTopControlsHidden = 2,
+ WebTopControlsBoth = 3
};
} // namespace blink
-
#endif

Powered by Google App Engine
This is Rietveld 408576698