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/chromeos/frame/layout_mode_button.h" | 5 #include "chrome/browser/chromeos/frame/layout_mode_button.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/chromeos/wm_ipc.h" | 9 #include "chrome/browser/chromeos/wm_ipc.h" |
10 #include "chrome/common/chrome_notification_types.h" | 10 #include "chrome/common/chrome_notification_types.h" |
11 #include "content/common/notification_details.h" | 11 #include "content/common/notification_details.h" |
12 #include "content/common/notification_source.h" | 12 #include "content/common/notification_source.h" |
13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
14 #include "grit/theme_resources.h" | 14 #include "grit/theme_resources.h" |
15 #include "third_party/cros/chromeos_wm_ipc_enums.h" | 15 #include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h" |
16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
17 #include "ui/base/resource/resource_bundle.h" | 17 #include "ui/base/resource/resource_bundle.h" |
18 #include "views/widget/widget.h" | 18 #include "views/widget/widget.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 const int kHorizontalPaddingPixels = 2; | 21 const int kHorizontalPaddingPixels = 2; |
22 } // namespace | 22 } // namespace |
23 | 23 |
24 namespace chromeos { | 24 namespace chromeos { |
25 | 25 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 SetImage(BS_NORMAL, rb.GetBitmapNamed(IDR_STATUSBAR_WINDOW_MAXIMIZE)); | 92 SetImage(BS_NORMAL, rb.GetBitmapNamed(IDR_STATUSBAR_WINDOW_MAXIMIZE)); |
93 SetTooltipText(UTF16ToWide( | 93 SetTooltipText(UTF16ToWide( |
94 l10n_util::GetStringUTF16(IDS_STATUSBAR_WINDOW_MAXIMIZE_TOOLTIP))); | 94 l10n_util::GetStringUTF16(IDS_STATUSBAR_WINDOW_MAXIMIZE_TOOLTIP))); |
95 break; | 95 break; |
96 default: | 96 default: |
97 DLOG(WARNING) << "Unknown layout mode " << mode; | 97 DLOG(WARNING) << "Unknown layout mode " << mode; |
98 } | 98 } |
99 } | 99 } |
100 | 100 |
101 } // namespace chromeos | 101 } // namespace chromeos |
OLD | NEW |