| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 // Used to group a series of resize events. For example, if the user | 62 // Used to group a series of resize events. For example, if the user |
| 63 // drags a resizer then willStartLiveResize will be called, followed by a | 63 // drags a resizer then willStartLiveResize will be called, followed by a |
| 64 // sequence of resize events, ending with willEndLiveResize when the user | 64 // sequence of resize events, ending with willEndLiveResize when the user |
| 65 // lets go of the resizer. | 65 // lets go of the resizer. |
| 66 virtual void willStartLiveResize() { } | 66 virtual void willStartLiveResize() { } |
| 67 | 67 |
| 68 // Called to resize the WebWidget. | 68 // Called to resize the WebWidget. |
| 69 virtual void resize(const WebSize&) { } | 69 virtual void resize(const WebSize&) { } |
| 70 | 70 |
| 71 // Resizes the unscaled pinch viewport. Normally the unscaled pinch | |
| 72 // viewport is the same size as the main frame. The passed size becomes the | |
| 73 // size of the viewport when unscaled (i.e. scale = 1). This is used to | |
| 74 // shrink the visible viewport to allow things like the ChromeOS virtual | |
| 75 // keyboard to overlay over content but allow scrolling it into view. | |
| 76 virtual void resizePinchViewport(const WebSize&) { } | |
| 77 | |
| 78 // Ends a group of resize events that was started with a call to | 71 // Ends a group of resize events that was started with a call to |
| 79 // willStartLiveResize. | 72 // willStartLiveResize. |
| 80 virtual void willEndLiveResize() { } | 73 virtual void willEndLiveResize() { } |
| 81 | 74 |
| 82 // Called to notify the WebWidget of entering/exiting fullscreen mode. The | 75 // Called to notify the WebWidget of entering/exiting fullscreen mode. The |
| 83 // resize method may be called between will{Enter,Exit}FullScreen and | 76 // resize method may be called between will{Enter,Exit}FullScreen and |
| 84 // did{Enter,Exit}FullScreen. | 77 // did{Enter,Exit}FullScreen. |
| 85 virtual void willEnterFullScreen() { } | 78 virtual void willEnterFullScreen() { } |
| 86 virtual void didEnterFullScreen() { } | 79 virtual void didEnterFullScreen() { } |
| 87 virtual void willExitFullScreen() { } | 80 virtual void willExitFullScreen() { } |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 // content. | 236 // content. |
| 244 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } | 237 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } |
| 245 | 238 |
| 246 protected: | 239 protected: |
| 247 ~WebWidget() { } | 240 ~WebWidget() { } |
| 248 }; | 241 }; |
| 249 | 242 |
| 250 } // namespace blink | 243 } // namespace blink |
| 251 | 244 |
| 252 #endif | 245 #endif |
| OLD | NEW |