| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_NATIVE_VIEW_PHOTOBOOTH_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_NATIVE_VIEW_PHOTOBOOTH_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_NATIVE_VIEW_PHOTOBOOTH_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_NATIVE_VIEW_PHOTOBOOTH_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 | 10 |
| 11 namespace gfx { | 11 namespace gfx { |
| 12 class Canvas; | 12 class Canvas; |
| 13 class Rect; | 13 class Rect; |
| 14 } | 14 } |
| 15 /////////////////////////////////////////////////////////////////////////////// | 15 /////////////////////////////////////////////////////////////////////////////// |
| 16 // NativeViewPhotobooth | 16 // NativeViewPhotobooth |
| 17 // | 17 // |
| 18 // An object that a NativeView "steps into" to have its picture taken. This is | 18 // An object that a NativeView "steps into" to have its picture taken. This is |
| 19 // used to generate a full size screen shot of the contents of a NativeView | 19 // used to generate a full size screen shot of the contents of a NativeView |
| (...skipping 15 matching lines...) Expand all Loading... |
| 35 // Replaces the view in the photo booth with the specified one. | 35 // Replaces the view in the photo booth with the specified one. |
| 36 virtual void Replace(gfx::NativeView new_view) = 0; | 36 virtual void Replace(gfx::NativeView new_view) = 0; |
| 37 | 37 |
| 38 // Paints the current display image of the window into |canvas|, clipped to | 38 // Paints the current display image of the window into |canvas|, clipped to |
| 39 // |target_bounds|. | 39 // |target_bounds|. |
| 40 virtual void PaintScreenshotIntoCanvas(gfx::Canvas* canvas, | 40 virtual void PaintScreenshotIntoCanvas(gfx::Canvas* canvas, |
| 41 const gfx::Rect& target_bounds) = 0; | 41 const gfx::Rect& target_bounds) = 0; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 #endif // CHROME_BROWSER_UI_VIEWS_TABS_NATIVE_VIEW_PHOTOBOOTH_H_ | 44 #endif // CHROME_BROWSER_UI_VIEWS_TABS_NATIVE_VIEW_PHOTOBOOTH_H_ |
| OLD | NEW |