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

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

Issue 560623002: Adjust maximum scroll bounds on FrameView to account for top controls. (Blink-side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review feedback Created 6 years, 3 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 // Informs the WebWidget that the resizer rect changed. Happens for example 254 // Informs the WebWidget that the resizer rect changed. Happens for example
255 // on mac, when a widget appears below the WebWidget without changing the 255 // on mac, when a widget appears below the WebWidget without changing the
256 // WebWidget's size (WebWidget::resize() automatically checks the resizer 256 // WebWidget's size (WebWidget::resize() automatically checks the resizer
257 // rect.) 257 // rect.)
258 virtual void didChangeWindowResizerRect() { } 258 virtual void didChangeWindowResizerRect() { }
259 259
260 // The page background color. Can be used for filling in areas without 260 // The page background color. Can be used for filling in areas without
261 // content. 261 // content.
262 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } 262 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ }
263 263
264 // Sets the height subtracted from the Widget to accomodate the top controls .
265 virtual void setTopControlsLayoutHeight(float) { }
266
264 protected: 267 protected:
265 ~WebWidget() { } 268 ~WebWidget() { }
266 }; 269 };
267 270
268 } // namespace blink 271 } // namespace blink
269 272
270 #endif 273 #endif
OLDNEW
« Source/core/frame/FrameView.cpp ('K') | « Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698