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

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

Issue 681583002: Remove pinch viewports. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: upload synced patch Created 6 years, 1 month 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698