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

Side by Side Diff: chrome/browser/chromeos/login/screen_locker.cc

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/chromeos/login/screen_locker.h" 5 #include "chrome/browser/chromeos/login/screen_locker.h"
6 6
7 #include <gdk/gdkx.h> 7 #include <gdk/gdkx.h>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include <X11/extensions/XTest.h> 10 #include <X11/extensions/XTest.h>
11 #include <X11/keysym.h> 11 #include <X11/keysym.h>
12 // Evil hack to undo X11 evil #define. See crosbug.com/ 12 // Evil hack to undo X11 evil #define. See crosbug.com/
13 #undef Status 13 #undef Status
14 14
15 #include "app/l10n_util.h" 15 #include "app/l10n_util.h"
16 #include "app/resource_bundle.h"
17 #include "base/command_line.h" 16 #include "base/command_line.h"
18 #include "base/lazy_instance.h" 17 #include "base/lazy_instance.h"
19 #include "base/metrics/histogram.h" 18 #include "base/metrics/histogram.h"
20 #include "base/message_loop.h" 19 #include "base/message_loop.h"
21 #include "base/string_util.h" 20 #include "base/string_util.h"
22 #include "base/timer.h" 21 #include "base/timer.h"
23 #include "base/utf_string_conversions.h" 22 #include "base/utf_string_conversions.h"
24 #include "chrome/browser/browser_list.h" 23 #include "chrome/browser/browser_list.h"
25 #include "chrome/browser/browser_thread.h" 24 #include "chrome/browser/browser_thread.h"
26 #include "chrome/browser/browser_window.h" 25 #include "chrome/browser/browser_window.h"
(...skipping 14 matching lines...) Expand all
41 #include "chrome/browser/metrics/user_metrics.h" 40 #include "chrome/browser/metrics/user_metrics.h"
42 #include "chrome/browser/profiles/profile_manager.h" 41 #include "chrome/browser/profiles/profile_manager.h"
43 #include "chrome/browser/sync/profile_sync_service.h" 42 #include "chrome/browser/sync/profile_sync_service.h"
44 #include "chrome/browser/ui/browser.h" 43 #include "chrome/browser/ui/browser.h"
45 #include "chrome/common/chrome_switches.h" 44 #include "chrome/common/chrome_switches.h"
46 #include "chrome/common/notification_service.h" 45 #include "chrome/common/notification_service.h"
47 #include "googleurl/src/gurl.h" 46 #include "googleurl/src/gurl.h"
48 #include "grit/generated_resources.h" 47 #include "grit/generated_resources.h"
49 #include "grit/theme_resources.h" 48 #include "grit/theme_resources.h"
50 #include "third_party/cros/chromeos_wm_ipc_enums.h" 49 #include "third_party/cros/chromeos_wm_ipc_enums.h"
50 #include "ui/base/resource/resource_bundle.h"
51 #include "ui/base/x/x11_util.h" 51 #include "ui/base/x/x11_util.h"
52 #include "views/screen.h" 52 #include "views/screen.h"
53 #include "views/widget/root_view.h" 53 #include "views/widget/root_view.h"
54 #include "views/widget/widget_gtk.h" 54 #include "views/widget/widget_gtk.h"
55 55
56 namespace { 56 namespace {
57 57
58 // The maximum duration for which locker should try to grab the keyboard and 58 // The maximum duration for which locker should try to grab the keyboard and
59 // mouse and its interval for regrabbing on failure. 59 // mouse and its interval for regrabbing on failure.
60 const int kMaxGrabFailureSec = 30; 60 const int kMaxGrabFailureSec = 30;
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1117 1117
1118 bool ScreenLocker::AcceleratorPressed(const views::Accelerator& accelerator) { 1118 bool ScreenLocker::AcceleratorPressed(const views::Accelerator& accelerator) {
1119 if (!background_view_->IsScreenSaverVisible()) { 1119 if (!background_view_->IsScreenSaverVisible()) {
1120 StartScreenSaver(); 1120 StartScreenSaver();
1121 return true; 1121 return true;
1122 } 1122 }
1123 return false; 1123 return false;
1124 } 1124 }
1125 1125
1126 } // namespace chromeos 1126 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screen_lock_view.cc ('k') | chrome/browser/chromeos/login/shutdown_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698