OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/frame/system_menu_model_builder.h" | 5 #include "chrome/browser/ui/views/frame/system_menu_model_builder.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
10 #include "chrome/browser/ui/browser_commands.h" | 10 #include "chrome/browser/ui/browser_commands.h" |
11 #include "chrome/browser/ui/host_desktop.h" | 11 #include "chrome/browser/ui/host_desktop.h" |
12 #include "chrome/browser/ui/toolbar/wrench_menu_model.h" | 12 #include "chrome/browser/ui/toolbar/wrench_menu_model.h" |
13 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
14 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
15 #include "ui/base/accelerators/accelerator.h" | 15 #include "ui/base/accelerators/accelerator.h" |
16 #include "ui/base/models/simple_menu_model.h" | 16 #include "ui/base/models/simple_menu_model.h" |
17 | 17 |
18 SystemMenuModelBuilder::SystemMenuModelBuilder( | 18 SystemMenuModelBuilder::SystemMenuModelBuilder( |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 } | 90 } |
91 | 91 |
92 void SystemMenuModelBuilder::AddFrameToggleItems(ui::SimpleMenuModel* model) { | 92 void SystemMenuModelBuilder::AddFrameToggleItems(ui::SimpleMenuModel* model) { |
93 if (CommandLine::ForCurrentProcess()->HasSwitch( | 93 if (CommandLine::ForCurrentProcess()->HasSwitch( |
94 switches::kDebugEnableFrameToggle)) { | 94 switches::kDebugEnableFrameToggle)) { |
95 model->AddSeparator(ui::NORMAL_SEPARATOR); | 95 model->AddSeparator(ui::NORMAL_SEPARATOR); |
96 model->AddItem(IDC_DEBUG_FRAME_TOGGLE, ASCIIToUTF16("Toggle Frame Type")); | 96 model->AddItem(IDC_DEBUG_FRAME_TOGGLE, ASCIIToUTF16("Toggle Frame Type")); |
97 } | 97 } |
98 } | 98 } |
99 | 99 |
OLD | NEW |