OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/views/chrome_views_delegate.h" | 5 #include "chrome/browser/ui/views/chrome_views_delegate.h" |
6 | 6 |
7 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/prefs/pref_service.h" | 11 #include "chrome/browser/prefs/pref_service.h" |
12 #include "chrome/browser/profiles/profile_manager.h" | 12 #include "chrome/browser/profiles/profile_manager.h" |
13 #include "chrome/browser/ui/views/accessibility_event_router_views.h" | 13 #include "chrome/browser/ui/views/accessibility_event_router_views.h" |
14 #include "chrome/browser/ui/window_sizer.h" | 14 #include "chrome/browser/ui/window_sizer.h" |
15 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
16 #include "gfx/rect.h" | |
17 #include "ui/base/clipboard/clipboard.h" | 16 #include "ui/base/clipboard/clipboard.h" |
| 17 #include "ui/gfx/rect.h" |
18 | 18 |
19 #if defined(OS_WIN) | 19 #if defined(OS_WIN) |
20 #include "chrome/browser/app_icon_win.h" | 20 #include "chrome/browser/app_icon_win.h" |
21 #endif | 21 #endif |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 // Some window data should be stored in local state, instead of by profile; use | 25 // Some window data should be stored in local state, instead of by profile; use |
26 // the window_name to differentiate between storage types. This function may | 26 // the window_name to differentiate between storage types. This function may |
27 // return NULL if the necessary PrefService has not yet been initialized. | 27 // return NULL if the necessary PrefService has not yet been initialized. |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 } | 118 } |
119 #endif | 119 #endif |
120 | 120 |
121 void ChromeViewsDelegate::AddRef() { | 121 void ChromeViewsDelegate::AddRef() { |
122 g_browser_process->AddRefModule(); | 122 g_browser_process->AddRefModule(); |
123 } | 123 } |
124 | 124 |
125 void ChromeViewsDelegate::ReleaseRef() { | 125 void ChromeViewsDelegate::ReleaseRef() { |
126 g_browser_process->ReleaseModule(); | 126 g_browser_process->ReleaseModule(); |
127 } | 127 } |
OLD | NEW |