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

Side by Side Diff: public/web/WebWidget.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: Address nitp 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 19 matching lines...) Expand all
30 30
31 #ifndef WebWidget_h 31 #ifndef WebWidget_h
32 #define WebWidget_h 32 #define WebWidget_h
33 33
34 #include "../platform/WebCanvas.h" 34 #include "../platform/WebCanvas.h"
35 #include "../platform/WebCommon.h" 35 #include "../platform/WebCommon.h"
36 #include "../platform/WebFloatSize.h" 36 #include "../platform/WebFloatSize.h"
37 #include "../platform/WebPoint.h" 37 #include "../platform/WebPoint.h"
38 #include "../platform/WebRect.h" 38 #include "../platform/WebRect.h"
39 #include "../platform/WebSize.h" 39 #include "../platform/WebSize.h"
40 #include "../platform/WebTopControlsState.h"
40 #include "WebBeginFrameArgs.h" 41 #include "WebBeginFrameArgs.h"
41 #include "WebCompositionUnderline.h" 42 #include "WebCompositionUnderline.h"
42 #include "WebTextDirection.h" 43 #include "WebTextDirection.h"
43 #include "WebTextInputInfo.h" 44 #include "WebTextInputInfo.h"
44 45
45 namespace blink { 46 namespace blink {
46 47
47 class WebCompositeAndReadbackAsyncCallback; 48 class WebCompositeAndReadbackAsyncCallback;
48 class WebInputEvent; 49 class WebInputEvent;
49 class WebPagePopup; 50 class WebPagePopup;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } 269 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ }
269 270
270 // The currently open page popup, which are calendar and datalist pickers 271 // The currently open page popup, which are calendar and datalist pickers
271 // but not the select popup. 272 // but not the select popup.
272 virtual WebPagePopup* pagePopup() const { return 0; } 273 virtual WebPagePopup* pagePopup() const { return 0; }
273 274
274 // Notification about the top controls height. If the boolean is true, then 275 // Notification about the top controls height. If the boolean is true, then
275 // the embedder shrunk the WebView size by the top controls height. 276 // the embedder shrunk the WebView size by the top controls height.
276 virtual void setTopControlsHeight(float height, bool topControlsShrinkLayout Size) { } 277 virtual void setTopControlsHeight(float height, bool topControlsShrinkLayout Size) { }
277 278
279 // Updates top controls constraints and current state. Allows embedder to
280 // control what are valid states for top controls and if it should animate.
281 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { }
282
278 protected: 283 protected:
279 ~WebWidget() { } 284 ~WebWidget() { }
280 }; 285 };
281 286
282 } // namespace blink 287 } // namespace blink
283 288
284 #endif 289 #endif
OLDNEW
« Source/web/tests/TopControlsTest.cpp ('K') | « public/platform/WebTopControlsState.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698