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

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

Issue 2139303002: Clean up around methods to enter/exit fullscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/public/web/WebView.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 virtual void resize(const WebSize&) { } 65 virtual void resize(const WebSize&) { }
66 66
67 // Resizes the unscaled visual viewport. Normally the unscaled visual 67 // Resizes the unscaled visual viewport. Normally the unscaled visual
68 // viewport is the same size as the main frame. The passed size becomes the 68 // viewport is the same size as the main frame. The passed size becomes the
69 // size of the viewport when unscaled (i.e. scale = 1). This is used to 69 // size of the viewport when unscaled (i.e. scale = 1). This is used to
70 // shrink the visible viewport to allow things like the ChromeOS virtual 70 // shrink the visible viewport to allow things like the ChromeOS virtual
71 // keyboard to overlay over content but allow scrolling it into view. 71 // keyboard to overlay over content but allow scrolling it into view.
72 virtual void resizeVisualViewport(const WebSize&) { } 72 virtual void resizeVisualViewport(const WebSize&) { }
73 73
74 // Called to notify the WebWidget of entering/exiting fullscreen mode. 74 // Called to notify the WebWidget of entering/exiting fullscreen mode.
75 virtual void didEnterFullScreen() { } 75 virtual void didEnterFullscreen() { }
76 virtual void didExitFullScreen() { } 76 virtual void didExitFullscreen() { }
77 77
78 // Called to update imperative animation state. This should be called before 78 // Called to update imperative animation state. This should be called before
79 // paint, although the client can rate-limit these calls. 79 // paint, although the client can rate-limit these calls.
80 // |lastFrameTimeMonotonic| is in seconds. 80 // |lastFrameTimeMonotonic| is in seconds.
81 virtual void beginFrame(double lastFrameTimeMonotonic) { } 81 virtual void beginFrame(double lastFrameTimeMonotonic) { }
82 82
83 // Called to run through the entire set of document lifecycle phases needed 83 // Called to run through the entire set of document lifecycle phases needed
84 // to render a frame of the web widget. This MUST be called before Paint, 84 // to render a frame of the web widget. This MUST be called before Paint,
85 // and it may result in calls to WebWidgetClient::didInvalidateRect. 85 // and it may result in calls to WebWidgetClient::didInvalidateRect.
86 virtual void updateAllLifecyclePhases() { } 86 virtual void updateAllLifecyclePhases() { }
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // control what are valid states for top controls and if it should animate. 243 // control what are valid states for top controls and if it should animate.
244 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { } 244 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { }
245 245
246 protected: 246 protected:
247 ~WebWidget() { } 247 ~WebWidget() { }
248 }; 248 };
249 249
250 } // namespace blink 250 } // namespace blink
251 251
252 #endif 252 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698