Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: chrome/browser/ui/ash/chrome_screenshot_grabber.h

Issue 1827323002: Take screenshot of active window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_ASH_CHROME_SCREENSHOT_GRABBER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_CHROME_SCREENSHOT_GRABBER_H_
6 #define CHROME_BROWSER_UI_ASH_CHROME_SCREENSHOT_GRABBER_H_ 6 #define CHROME_BROWSER_UI_ASH_CHROME_SCREENSHOT_GRABBER_H_
7 7
8 #include "ash/screenshot_delegate.h" 8 #include "ash/screenshot_delegate.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 16 matching lines...) Expand all
27 ~ChromeScreenshotGrabber() override; 27 ~ChromeScreenshotGrabber() override;
28 28
29 ui::ScreenshotGrabber* screenshot_grabber() { 29 ui::ScreenshotGrabber* screenshot_grabber() {
30 return screenshot_grabber_.get(); 30 return screenshot_grabber_.get();
31 } 31 }
32 32
33 // ash::ScreenshotDelegate: 33 // ash::ScreenshotDelegate:
34 void HandleTakeScreenshotForAllRootWindows() override; 34 void HandleTakeScreenshotForAllRootWindows() override;
35 void HandleTakePartialScreenshot(aura::Window* window, 35 void HandleTakePartialScreenshot(aura::Window* window,
36 const gfx::Rect& rect) override; 36 const gfx::Rect& rect) override;
37 void HandleTakeWindowScreenshot(aura::Window* window) override;
37 bool CanTakeScreenshot() override; 38 bool CanTakeScreenshot() override;
38 39
39 // ui::ScreenshotGrabberDelegate: 40 // ui::ScreenshotGrabberDelegate:
40 void PrepareFileAndRunOnBlockingPool( 41 void PrepareFileAndRunOnBlockingPool(
41 const base::FilePath& path, 42 const base::FilePath& path,
42 scoped_refptr<base::TaskRunner> blocking_task_runner, 43 scoped_refptr<base::TaskRunner> blocking_task_runner,
43 const FileCallback& callback_on_blocking_pool) override; 44 const FileCallback& callback_on_blocking_pool) override;
44 45
45 // ui::ScreenshotGrabberObserver: 46 // ui::ScreenshotGrabberObserver:
46 void OnScreenshotCompleted(ui::ScreenshotGrabberObserver::Result result, 47 void OnScreenshotCompleted(ui::ScreenshotGrabberObserver::Result result,
(...skipping 11 matching lines...) Expand all
58 void SetProfileForTest(Profile* profile); 59 void SetProfileForTest(Profile* profile);
59 Profile* GetProfile(); 60 Profile* GetProfile();
60 61
61 std::unique_ptr<ui::ScreenshotGrabber> screenshot_grabber_; 62 std::unique_ptr<ui::ScreenshotGrabber> screenshot_grabber_;
62 Profile* profile_for_test_; 63 Profile* profile_for_test_;
63 64
64 DISALLOW_COPY_AND_ASSIGN(ChromeScreenshotGrabber); 65 DISALLOW_COPY_AND_ASSIGN(ChromeScreenshotGrabber);
65 }; 66 };
66 67
67 #endif // CHROME_BROWSER_UI_ASH_CHROME_SCREENSHOT_GRABBER_H_ 68 #endif // CHROME_BROWSER_UI_ASH_CHROME_SCREENSHOT_GRABBER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698