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

Side by Side Diff: public/web/WebWidget.h

Issue 882683003: Normalize top controls offset to (0, 1), Blink-side. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Switch unit tests to normalized format 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
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 virtual void didChangeWindowResizerRect() { } 264 virtual void didChangeWindowResizerRect() { }
265 265
266 // The page background color. Can be used for filling in areas without 266 // The page background color. Can be used for filling in areas without
267 // content. 267 // content.
268 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } 268 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ }
269 269
270 // The currently open page popup, which are calendar and datalist pickers 270 // The currently open page popup, which are calendar and datalist pickers
271 // but not the select popup. 271 // but not the select popup.
272 virtual WebPagePopup* pagePopup() const { return 0; } 272 virtual WebPagePopup* pagePopup() const { return 0; }
273 273
274 // Sets the height subtracted from the Widget to accomodate the top controls . 274 // TODO(aelias): Delete this after Blink roll.
275 virtual void setTopControlsLayoutHeight(float) { } 275 virtual void setTopControlsLayoutHeight(float) { }
276 276
277 // Notification about the top controls height. If the boolean is true, then
Rick Byers 2015/02/07 03:13:52 nit: it's not clear that height here is a normaliz
aelias_OOO_until_Jul13 2015/02/07 03:32:08 Height is still an absolute value here. The one t
278 // the embedder shrunk the WebView size by the top controls height.
279 virtual void setTopControlsHeight(float height, bool topControlsShrinkLayout Size) { }
280
277 protected: 281 protected:
278 ~WebWidget() { } 282 ~WebWidget() { }
279 }; 283 };
280 284
281 } // namespace blink 285 } // namespace blink
282 286
283 #endif 287 #endif
OLDNEW
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698