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 #import "chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller.h" | 5 #import "chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #import "base/mac/bundle_locations.h" | 11 #import "base/mac/bundle_locations.h" |
12 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
13 #include "chrome/browser/media/combined_desktop_media_list.h" | 13 #include "chrome/browser/media/combined_desktop_media_list.h" |
14 #include "chrome/browser/ui/browser_finder.h" | 14 #include "chrome/browser/ui/browser_finder.h" |
15 #include "chrome/browser/ui/browser_window.h" | 15 #include "chrome/browser/ui/browser_window.h" |
16 #import "chrome/browser/ui/cocoa/key_equivalent_constants.h" | 16 #import "chrome/browser/ui/cocoa/key_equivalent_constants.h" |
17 #import "chrome/browser/ui/cocoa/media_picker/desktop_media_picker_item.h" | 17 #import "chrome/browser/ui/cocoa/media_picker/desktop_media_picker_item.h" |
18 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.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/strings/grit/components_strings.h" |
21 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
22 #include "content/public/browser/render_frame_host.h" | 23 #include "content/public/browser/render_frame_host.h" |
23 #include "content/public/browser/web_contents.h" | 24 #include "content/public/browser/web_contents.h" |
24 #include "content/public/browser/web_contents_delegate.h" | 25 #include "content/public/browser/web_contents_delegate.h" |
25 #include "grit/components_strings.h" | |
26 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" | 26 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" |
27 #import "ui/base/cocoa/flipped_view.h" | 27 #import "ui/base/cocoa/flipped_view.h" |
28 #import "ui/base/cocoa/window_size_constants.h" | 28 #import "ui/base/cocoa/window_size_constants.h" |
29 #include "ui/base/l10n/l10n_util.h" | 29 #include "ui/base/l10n/l10n_util.h" |
30 #include "ui/gfx/image/image_skia_util_mac.h" | 30 #include "ui/gfx/image/image_skia_util_mac.h" |
31 | 31 |
32 using content::DesktopMediaID; | 32 using content::DesktopMediaID; |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 | 784 |
785 DesktopMediaPickerItem* item = [items objectAtIndex:index]; | 785 DesktopMediaPickerItem* item = [items objectAtIndex:index]; |
786 [item setImageRepresentation:image]; | 786 [item setImageRepresentation:image]; |
787 [browser reloadData]; | 787 [browser reloadData]; |
788 | 788 |
789 if (sourceType == DesktopMediaID::TYPE_WEB_CONTENTS) | 789 if (sourceType == DesktopMediaID::TYPE_WEB_CONTENTS) |
790 [self setTabBrowserIndex:selectedIndex]; | 790 [self setTabBrowserIndex:selectedIndex]; |
791 } | 791 } |
792 | 792 |
793 @end // @interface DesktopMediaPickerController | 793 @end // @interface DesktopMediaPickerController |
OLD | NEW |