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

Side by Side Diff: public/web/WebWidgetClient.h

Issue 646403002: NOT FOR REVIEW: Alternative for supporting fullscreen for non-media in the WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 | « Source/web/FullscreenController.cpp ('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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // Called to block execution of the current thread until the widget is 110 // Called to block execution of the current thread until the widget is
111 // closed. 111 // closed.
112 virtual void runModal() { } 112 virtual void runModal() { }
113 113
114 // Called to enter/exit fullscreen mode. If enterFullScreen returns true, 114 // Called to enter/exit fullscreen mode. If enterFullScreen returns true,
115 // then WebWidget::{will,Did}EnterFullScreen should bound resizing the 115 // then WebWidget::{will,Did}EnterFullScreen should bound resizing the
116 // WebWidget into fullscreen mode. Similarly, when exitFullScreen is 116 // WebWidget into fullscreen mode. Similarly, when exitFullScreen is
117 // called, WebWidget::{will,Did}ExitFullScreen should bound resizing the 117 // called, WebWidget::{will,Did}ExitFullScreen should bound resizing the
118 // WebWidget out of fullscreen mode. 118 // WebWidget out of fullscreen mode.
119 virtual bool enterFullScreen() { return false; } 119 virtual bool enterFullScreen(bool isVideo) { return false; }
120 virtual void exitFullScreen() { } 120 virtual void exitFullScreen(bool isVideo) { }
121 121
122 // Called to get/set the position of the widget in screen coordinates. 122 // Called to get/set the position of the widget in screen coordinates.
123 virtual WebRect windowRect() { return WebRect(); } 123 virtual WebRect windowRect() { return WebRect(); }
124 virtual void setWindowRect(const WebRect&) { } 124 virtual void setWindowRect(const WebRect&) { }
125 125
126 // Called when a tooltip should be shown at the current cursor position. 126 // Called when a tooltip should be shown at the current cursor position.
127 virtual void setToolTipText(const WebString&, WebTextDirection hint) { } 127 virtual void setToolTipText(const WebString&, WebTextDirection hint) { }
128 128
129 // Called to get the position of the resizer rect in window coordinates. 129 // Called to get the position of the resizer rect in window coordinates.
130 virtual WebRect windowResizerRect() { return WebRect(); } 130 virtual WebRect windowResizerRect() { return WebRect(); }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // Request the browser to show the IME for current input type. 176 // Request the browser to show the IME for current input type.
177 virtual void showImeIfNeeded() { } 177 virtual void showImeIfNeeded() { }
178 178
179 protected: 179 protected:
180 ~WebWidgetClient() { } 180 ~WebWidgetClient() { }
181 }; 181 };
182 182
183 } // namespace blink 183 } // namespace blink
184 184
185 #endif 185 #endif
OLDNEW
« no previous file with comments | « Source/web/FullscreenController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698