summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/tabs
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-29 22:51:09 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-29 22:51:09 +0000
commita9b49d5ab79dfacc42575b17e659ec8244069e61 (patch)
tree86bf280819301b5e970d4fefd0adc3bc4b6926f6 /chrome/browser/views/tabs
parent5e6bcba5758b5349ae525886e31a35f703edabab (diff)
downloadchromium_src-a9b49d5ab79dfacc42575b17e659ec8244069e61.zip
chromium_src-a9b49d5ab79dfacc42575b17e659ec8244069e61.tar.gz
chromium_src-a9b49d5ab79dfacc42575b17e659ec8244069e61.tar.bz2
More views on gtk work: NativeViewPhotoboothGtk, adds a missing method
to NativeViewHostGtk and location bar view colors. BUG=none TEST=none Review URL: http://codereview.chromium.org/115958 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17255 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/tabs')
-rw-r--r--chrome/browser/views/tabs/native_view_photobooth_gtk.cc34
-rw-r--r--chrome/browser/views/tabs/native_view_photobooth_gtk.h29
2 files changed, 63 insertions, 0 deletions
diff --git a/chrome/browser/views/tabs/native_view_photobooth_gtk.cc b/chrome/browser/views/tabs/native_view_photobooth_gtk.cc
new file mode 100644
index 0000000..83077aa
--- /dev/null
+++ b/chrome/browser/views/tabs/native_view_photobooth_gtk.cc
@@ -0,0 +1,34 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/views/tabs/native_view_photobooth_gtk.h"
+
+#include "app/gfx/canvas.h"
+#include "base/logging.h"
+
+///////////////////////////////////////////////////////////////////////////////
+// NativeViewPhotoboothGtk, public:
+
+// static
+NativeViewPhotobooth* NativeViewPhotobooth::Create(
+ gfx::NativeView initial_view) {
+ return new NativeViewPhotoboothGtk(initial_view);
+}
+
+NativeViewPhotoboothGtk::NativeViewPhotoboothGtk(
+ gfx::NativeView initial_view) {
+}
+
+NativeViewPhotoboothGtk::~NativeViewPhotoboothGtk() {
+}
+
+void NativeViewPhotoboothGtk::Replace(gfx::NativeView new_view) {
+ NOTIMPLEMENTED();
+}
+
+void NativeViewPhotoboothGtk::PaintScreenshotIntoCanvas(
+ gfx::Canvas* canvas,
+ const gfx::Rect& target_bounds) {
+ NOTIMPLEMENTED();
+}
diff --git a/chrome/browser/views/tabs/native_view_photobooth_gtk.h b/chrome/browser/views/tabs/native_view_photobooth_gtk.h
new file mode 100644
index 0000000..6082f52
--- /dev/null
+++ b/chrome/browser/views/tabs/native_view_photobooth_gtk.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_VIEWS_TABS_NATIVE_VIEW_PHOTOBOOTH_GTK_H_
+#define CHROME_BROWSER_VIEWS_TABS_NATIVE_VIEW_PHOTOBOOTH_GTK_H_
+
+#include "chrome/browser/views/tabs/native_view_photobooth.h"
+
+class NativeViewPhotoboothGtk : public NativeViewPhotobooth {
+ public:
+ explicit NativeViewPhotoboothGtk(gfx::NativeView new_view);
+
+ // Destroys the photo booth window.
+ virtual ~NativeViewPhotoboothGtk();
+
+ // Replaces the view in the photo booth with the specified one.
+ virtual void Replace(gfx::NativeView new_view);
+
+ // Paints the current display image of the window into |canvas|, clipped to
+ // |target_bounds|.
+ virtual void PaintScreenshotIntoCanvas(gfx::Canvas* canvas,
+ const gfx::Rect& target_bounds);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NativeViewPhotoboothGtk);
+};
+
+#endif // #ifndef CHROME_BROWSER_VIEWS_TABS_NATIVE_VIEW_PHOTOBOOTH_GTK_H_