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

Side by Side Diff: chrome/browser/ui/ash/screenshot_taker.cc

Issue 23945002: file_manager: Move non-binding code to c/b/chromeos/file_manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
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 #include "chrome/browser/ui/ash/screenshot_taker.h" 5 #include "chrome/browser/ui/ash/screenshot_taker.h"
6 6
7 #include <climits> 7 #include <climits>
8 #include <string> 8 #include <string>
9 9
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 25 matching lines...) Expand all
36 #include "ui/base/resource/resource_bundle.h" 36 #include "ui/base/resource/resource_bundle.h"
37 #include "ui/gfx/image/image.h" 37 #include "ui/gfx/image/image.h"
38 38
39 #if defined(USE_ASH) 39 #if defined(USE_ASH)
40 #include "ash/shell.h" 40 #include "ash/shell.h"
41 #include "ash/shell_delegate.h" 41 #include "ash/shell_delegate.h"
42 #endif 42 #endif
43 43
44 #if defined(OS_CHROMEOS) 44 #if defined(OS_CHROMEOS)
45 #include "chrome/browser/chromeos/drive/file_system_util.h" 45 #include "chrome/browser/chromeos/drive/file_system_util.h"
46 #include "chrome/browser/chromeos/extensions/file_manager/open_util.h" 46 #include "chrome/browser/chromeos/file_manager/open_util.h"
47 #include "chrome/browser/chromeos/login/user_manager.h" 47 #include "chrome/browser/chromeos/login/user_manager.h"
48 #include "chrome/browser/notifications/desktop_notification_service.h" 48 #include "chrome/browser/notifications/desktop_notification_service.h"
49 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 49 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
50 #include "chromeos/login/login_state.h" 50 #include "chromeos/login/login_state.h"
51 #endif 51 #endif
52 52
53 namespace { 53 namespace {
54 // The minimum interval between two screenshot commands. It has to be 54 // The minimum interval between two screenshot commands. It has to be
55 // more than 1000 to prevent the conflict of filenames. 55 // more than 1000 to prevent the conflict of filenames.
56 const int kScreenshotMinimumIntervalInMS = 1000; 56 const int kScreenshotMinimumIntervalInMS = 1000;
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 } 498 }
499 499
500 void ScreenshotTaker::SetScreenshotBasenameForTest( 500 void ScreenshotTaker::SetScreenshotBasenameForTest(
501 const std::string& basename) { 501 const std::string& basename) {
502 screenshot_basename_for_test_ = basename; 502 screenshot_basename_for_test_ = basename;
503 } 503 }
504 504
505 void ScreenshotTaker::SetScreenshotProfileForTest(Profile* profile) { 505 void ScreenshotTaker::SetScreenshotProfileForTest(Profile* profile) {
506 profile_for_test_ = profile; 506 profile_for_test_ = profile;
507 } 507 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc ('k') | chrome/browser/ui/views/select_file_dialog_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698