| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 template <typename T> class WebVector; | 56 template <typename T> class WebVector; |
| 57 | 57 |
| 58 class WebWidget { | 58 class WebWidget { |
| 59 public: | 59 public: |
| 60 // This method closes and deletes the WebWidget. | 60 // This method closes and deletes the WebWidget. |
| 61 virtual void close() { } | 61 virtual void close() { } |
| 62 | 62 |
| 63 // Returns the current size of the WebWidget. | 63 // Returns the current size of the WebWidget. |
| 64 virtual WebSize size() { return WebSize(); } | 64 virtual WebSize size() { return WebSize(); } |
| 65 | 65 |
| 66 // Used to group a series of resize events. For example, if the user | |
| 67 // drags a resizer then willStartLiveResize will be called, followed by a | |
| 68 // sequence of resize events, ending with willEndLiveResize when the user | |
| 69 // lets go of the resizer. | |
| 70 virtual void willStartLiveResize() { } | |
| 71 | |
| 72 // Called to resize the WebWidget. | 66 // Called to resize the WebWidget. |
| 73 virtual void resize(const WebSize&) { } | 67 virtual void resize(const WebSize&) { } |
| 74 | 68 |
| 75 // Resizes the unscaled visual viewport. Normally the unscaled visual | 69 // Resizes the unscaled visual viewport. Normally the unscaled visual |
| 76 // viewport is the same size as the main frame. The passed size becomes the | 70 // viewport is the same size as the main frame. The passed size becomes the |
| 77 // size of the viewport when unscaled (i.e. scale = 1). This is used to | 71 // size of the viewport when unscaled (i.e. scale = 1). This is used to |
| 78 // shrink the visible viewport to allow things like the ChromeOS virtual | 72 // shrink the visible viewport to allow things like the ChromeOS virtual |
| 79 // keyboard to overlay over content but allow scrolling it into view. | 73 // keyboard to overlay over content but allow scrolling it into view. |
| 80 virtual void resizeVisualViewport(const WebSize&) { } | 74 virtual void resizeVisualViewport(const WebSize&) { } |
| 81 | 75 |
| 82 // Ends a group of resize events that was started with a call to | |
| 83 // willStartLiveResize. | |
| 84 virtual void willEndLiveResize() { } | |
| 85 | |
| 86 // Called to notify the WebWidget of entering/exiting fullscreen mode. | 76 // Called to notify the WebWidget of entering/exiting fullscreen mode. |
| 87 virtual void didEnterFullScreen() { } | 77 virtual void didEnterFullScreen() { } |
| 88 virtual void didExitFullScreen() { } | 78 virtual void didExitFullScreen() { } |
| 89 | 79 |
| 90 // Called to update imperative animation state. This should be called before | 80 // Called to update imperative animation state. This should be called before |
| 91 // paint, although the client can rate-limit these calls. | 81 // paint, although the client can rate-limit these calls. |
| 92 virtual void beginFrame(double lastFrameTimeMonotonic) { } | 82 virtual void beginFrame(double lastFrameTimeMonotonic) { } |
| 93 | 83 |
| 94 // Called to run through the entire set of document lifecycle phases needed | 84 // Called to run through the entire set of document lifecycle phases needed |
| 95 // to render a frame of the web widget. This MUST be called before Paint, | 85 // to render a frame of the web widget. This MUST be called before Paint, |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 // control what are valid states for top controls and if it should animate. | 254 // control what are valid states for top controls and if it should animate. |
| 265 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } | 255 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } |
| 266 | 256 |
| 267 protected: | 257 protected: |
| 268 ~WebWidget() { } | 258 ~WebWidget() { } |
| 269 }; | 259 }; |
| 270 | 260 |
| 271 } // namespace blink | 261 } // namespace blink |
| 272 | 262 |
| 273 #endif | 263 #endif |
| OLD | NEW |