Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

native_view_photobooth_gtk.h

// 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  // CHROME_BROWSER_VIEWS_TABS_NATIVE_VIEW_PHOTOBOOTH_GTK_H_

Generated by  Doxygen 1.6.0   Back to index