| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |