summaryrefslogtreecommitdiffstats
path: root/o3d/converter
diff options
context:
space:
mode:
authortschmelcher@google.com <tschmelcher@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-01 17:30:15 +0000
committertschmelcher@google.com <tschmelcher@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-01 17:30:15 +0000
commitf6618de512037e7f9701b03877f53868c47e01dc (patch)
treefcb95d8fb48791a22e6ff2e5ef5779ce265294ad /o3d/converter
parent6b5a32b508a41b4b1e19d7ec1815ce4f6b2e1699 (diff)
downloadchromium_src-f6618de512037e7f9701b03877f53868c47e01dc.zip
chromium_src-f6618de512037e7f9701b03877f53868c47e01dc.tar.gz
chromium_src-f6618de512037e7f9701b03877f53868c47e01dc.tar.bz2
Implement fullscreen on Linux. No "Press Esc" message yet though. Also it's DISPLAY_MODE_DEFAULT only for now (mode switching is evil anyways ;) ). Small bit of code cleanup in renderer.h.
TESTED=entered and exited fullscreen; tested leaving with Esc, Alt+F4, click on region, and right-click on taskbare -> Close; all with both Compiz on and off, on gHardy. Review URL: http://codereview.chromium.org/258004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27732 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/converter')
-rw-r--r--o3d/converter/cross/renderer_stub.cc20
-rw-r--r--o3d/converter/cross/renderer_stub.h7
2 files changed, 27 insertions, 0 deletions
diff --git a/o3d/converter/cross/renderer_stub.cc b/o3d/converter/cross/renderer_stub.cc
index 2801470..0f11826 100644
--- a/o3d/converter/cross/renderer_stub.cc
+++ b/o3d/converter/cross/renderer_stub.cc
@@ -183,6 +183,26 @@ void RendererStub::SetViewportInPixels(int, int, int, int, float, float) {
DCHECK(false);
}
+bool RendererStub::GoFullscreen(const DisplayWindow& display,
+ int mode_id) {
+ return false;
+}
+
+bool RendererStub::CancelFullscreen(const DisplayWindow& display,
+ int width, int height) {
+ return false;
+}
+
+bool RendererStub::fullscreen() const { return false; }
+
+void RendererStub::GetDisplayModes(std::vector<DisplayMode> *modes) {
+ modes->clear();
+}
+
+bool RendererStub::GetDisplayMode(int id, DisplayMode *mode) {
+ return false;
+}
+
void RendererStub::PlatformSpecificPresent(void) {
}
diff --git a/o3d/converter/cross/renderer_stub.h b/o3d/converter/cross/renderer_stub.h
index 3f0c413..514349d 100644
--- a/o3d/converter/cross/renderer_stub.h
+++ b/o3d/converter/cross/renderer_stub.h
@@ -71,6 +71,13 @@ class RendererStub : public Renderer {
int height,
float min_z,
float max_z);
+ virtual bool GoFullscreen(const DisplayWindow& display,
+ int mode_id);
+ virtual bool CancelFullscreen(const DisplayWindow& display,
+ int width, int height);
+ virtual bool fullscreen() const;
+ virtual void GetDisplayModes(std::vector<DisplayMode> *modes);
+ virtual bool GetDisplayMode(int id, DisplayMode *mode);
// Overridden from Renderer.
virtual const int* GetRGBAUByteNSwizzleTable();