OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/desktop_media_picker_views.h" | 5 #include "chrome/browser/ui/views/desktop_media_picker_views.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/callback.h" | 9 #include "base/callback.h" |
8 #include "base/command_line.h" | 10 #include "base/command_line.h" |
9 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "build/build_config.h" |
10 #include "chrome/browser/media/desktop_media_list.h" | 13 #include "chrome/browser/media/desktop_media_list.h" |
11 #include "chrome/browser/ui/ash/ash_util.h" | 14 #include "chrome/browser/ui/ash/ash_util.h" |
12 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
13 #include "chrome/grit/generated_resources.h" | 16 #include "chrome/grit/generated_resources.h" |
14 #include "components/constrained_window/constrained_window_views.h" | 17 #include "components/constrained_window/constrained_window_views.h" |
15 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 18 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
16 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
17 #include "content/public/browser/web_contents_delegate.h" | 20 #include "content/public/browser/web_contents_delegate.h" |
18 #include "ui/aura/window_tree_host.h" | 21 #include "ui/aura/window_tree_host.h" |
19 #include "ui/base/l10n/l10n_util.h" | 22 #include "ui/base/l10n/l10n_util.h" |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 content::BrowserThread::PostTask( | 603 content::BrowserThread::PostTask( |
601 content::BrowserThread::UI, FROM_HERE, | 604 content::BrowserThread::UI, FROM_HERE, |
602 base::Bind(callback_, source)); | 605 base::Bind(callback_, source)); |
603 callback_.Reset(); | 606 callback_.Reset(); |
604 } | 607 } |
605 | 608 |
606 // static | 609 // static |
607 scoped_ptr<DesktopMediaPicker> DesktopMediaPicker::Create() { | 610 scoped_ptr<DesktopMediaPicker> DesktopMediaPicker::Create() { |
608 return scoped_ptr<DesktopMediaPicker>(new DesktopMediaPickerViews()); | 611 return scoped_ptr<DesktopMediaPicker>(new DesktopMediaPickerViews()); |
609 } | 612 } |
OLD | NEW |