| OLD | NEW |
| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 scoped_refptr<base::TaskRunner> blocking_task_runner, | 43 scoped_refptr<base::TaskRunner> blocking_task_runner, |
| 44 const FileCallback& callback_on_blocking_pool) override; | 44 const FileCallback& callback_on_blocking_pool) override; |
| 45 | 45 |
| 46 // ui::ScreenshotGrabberObserver: | 46 // ui::ScreenshotGrabberObserver: |
| 47 void OnScreenshotCompleted(ui::ScreenshotGrabberObserver::Result result, | 47 void OnScreenshotCompleted(ui::ScreenshotGrabberObserver::Result result, |
| 48 const base::FilePath& screenshot_path) override; | 48 const base::FilePath& screenshot_path) override; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 friend class ash::test::ChromeScreenshotGrabberTest; | 51 friend class ash::test::ChromeScreenshotGrabberTest; |
| 52 | 52 |
| 53 #if defined(OS_CHROMEOS) | |
| 54 Notification* CreateNotification( | 53 Notification* CreateNotification( |
| 55 ui::ScreenshotGrabberObserver::Result screenshot_result, | 54 ui::ScreenshotGrabberObserver::Result screenshot_result, |
| 56 const base::FilePath& screenshot_path); | 55 const base::FilePath& screenshot_path); |
| 57 #endif | |
| 58 | 56 |
| 59 void SetProfileForTest(Profile* profile); | 57 void SetProfileForTest(Profile* profile); |
| 60 Profile* GetProfile(); | 58 Profile* GetProfile(); |
| 61 | 59 |
| 62 std::unique_ptr<ui::ScreenshotGrabber> screenshot_grabber_; | 60 std::unique_ptr<ui::ScreenshotGrabber> screenshot_grabber_; |
| 63 Profile* profile_for_test_; | 61 Profile* profile_for_test_; |
| 64 | 62 |
| 65 DISALLOW_COPY_AND_ASSIGN(ChromeScreenshotGrabber); | 63 DISALLOW_COPY_AND_ASSIGN(ChromeScreenshotGrabber); |
| 66 }; | 64 }; |
| 67 | 65 |
| 68 #endif // CHROME_BROWSER_UI_ASH_CHROME_SCREENSHOT_GRABBER_H_ | 66 #endif // CHROME_BROWSER_UI_ASH_CHROME_SCREENSHOT_GRABBER_H_ |
| OLD | NEW |