OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_browser_main_extra_parts_views_linux.h" | 5 #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "chrome/browser/chrome_browser_main.h" | 9 #include "chrome/browser/chrome_browser_main.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/themes/theme_service.h" | 11 #include "chrome/browser/themes/theme_service.h" |
12 #include "chrome/browser/themes/theme_service_factory.h" | 12 #include "chrome/browser/themes/theme_service_factory.h" |
13 #include "chrome/browser/ui/browser_list.h" | 13 #include "chrome/browser/ui/browser_list.h" |
14 #include "chrome/browser/ui/libgtk2ui/gtk2_ui.h" | 14 #include "chrome/browser/ui/libgtkui/gtk2_ui.h" |
15 #include "chrome/browser/ui/simple_message_box.h" | 15 #include "chrome/browser/ui/simple_message_box.h" |
16 #include "chrome/browser/ui/views/frame/browser_view.h" | 16 #include "chrome/browser/ui/views/frame/browser_view.h" |
17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
19 #include "chrome/grit/chromium_strings.h" | 19 #include "chrome/grit/chromium_strings.h" |
20 #include "chrome/grit/generated_resources.h" | 20 #include "chrome/grit/generated_resources.h" |
21 #include "components/prefs/pref_service.h" | 21 #include "components/prefs/pref_service.h" |
22 #include "ui/aura/env.h" | 22 #include "ui/aura/env.h" |
23 #include "ui/aura/window.h" | 23 #include "ui/aura/window.h" |
24 #include "ui/base/ime/input_method_initializer.h" | 24 #include "ui/base/ime/input_method_initializer.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // per_compositor_data_.empty() when quit is chosen. | 121 // per_compositor_data_.empty() when quit is chosen. |
122 base::RunLoop().RunUntilIdle(); | 122 base::RunLoop().RunUntilIdle(); |
123 | 123 |
124 exit(EXIT_FAILURE); | 124 exit(EXIT_FAILURE); |
125 } | 125 } |
126 | 126 |
127 void ChromeBrowserMainExtraPartsViewsLinux::OnWorkspaceChanged( | 127 void ChromeBrowserMainExtraPartsViewsLinux::OnWorkspaceChanged( |
128 const std::string& new_workspace) { | 128 const std::string& new_workspace) { |
129 BrowserList::MoveBrowsersInWorkspaceToFront(new_workspace); | 129 BrowserList::MoveBrowsersInWorkspaceToFront(new_workspace); |
130 } | 130 } |
OLD | NEW |