OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PANELS_TASKBAR_WINDOW_THUMBNAILER_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PANELS_TASKBAR_WINDOW_THUMBNAILER_WIN_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_PANELS_TASKBAR_WINDOW_THUMBNAILER_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PANELS_TASKBAR_WINDOW_THUMBNAILER_WIN_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
| 9 |
| 10 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
10 #include "ui/base/win/hwnd_subclass.h" | 12 #include "ui/base/win/hwnd_subclass.h" |
11 | 13 |
12 class SkBitmap; | 14 class SkBitmap; |
13 | 15 |
14 class TaskbarWindowThumbnailerDelegateWin { | 16 class TaskbarWindowThumbnailerDelegateWin { |
15 public: | 17 public: |
16 // Returns the list of handles for all windows that are used to construct the | 18 // Returns the list of handles for all windows that are used to construct the |
17 // thumbnail. If empty list is returned, the snapshot of current window | 19 // thumbnail. If empty list is returned, the snapshot of current window |
18 // is used. | 20 // is used. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 SkBitmap* CaptureWindowImage() const; | 65 SkBitmap* CaptureWindowImage() const; |
64 | 66 |
65 HWND hwnd_; | 67 HWND hwnd_; |
66 TaskbarWindowThumbnailerDelegateWin* delegate_; // Weak, owns us. | 68 TaskbarWindowThumbnailerDelegateWin* delegate_; // Weak, owns us. |
67 scoped_ptr<SkBitmap> capture_bitmap_; | 69 scoped_ptr<SkBitmap> capture_bitmap_; |
68 | 70 |
69 DISALLOW_COPY_AND_ASSIGN(TaskbarWindowThumbnailerWin); | 71 DISALLOW_COPY_AND_ASSIGN(TaskbarWindowThumbnailerWin); |
70 }; | 72 }; |
71 | 73 |
72 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_TASKBAR_WINDOW_THUMBNAILER_WIN_H_ | 74 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_TASKBAR_WINDOW_THUMBNAILER_WIN_H_ |
OLD | NEW |