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 "chrome/grit/google_chrome_strings.h" | |
22 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
23 #include "content/public/browser/render_frame_host.h" | 22 #include "content/public/browser/render_frame_host.h" |
24 #include "content/public/browser/web_contents.h" | 23 #include "content/public/browser/web_contents.h" |
25 #include "content/public/browser/web_contents_delegate.h" | 24 #include "content/public/browser/web_contents_delegate.h" |
26 #include "grit/components_strings.h" | 25 #include "grit/components_strings.h" |
27 #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" |
28 #import "ui/base/cocoa/flipped_view.h" | 27 #import "ui/base/cocoa/flipped_view.h" |
29 #import "ui/base/cocoa/window_size_constants.h" | 28 #import "ui/base/cocoa/window_size_constants.h" |
30 #include "ui/base/l10n/l10n_util.h" | 29 #include "ui/base/l10n/l10n_util.h" |
31 #include "ui/gfx/image/image_skia_util_mac.h" | 30 #include "ui/gfx/image/image_skia_util_mac.h" |
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 | 784 |
786 DesktopMediaPickerItem* item = [items objectAtIndex:index]; | 785 DesktopMediaPickerItem* item = [items objectAtIndex:index]; |
787 [item setImageRepresentation:image]; | 786 [item setImageRepresentation:image]; |
788 [browser reloadData]; | 787 [browser reloadData]; |
789 | 788 |
790 if (sourceType == DesktopMediaID::TYPE_WEB_CONTENTS) | 789 if (sourceType == DesktopMediaID::TYPE_WEB_CONTENTS) |
791 [self setTabBrowserIndex:selectedIndex]; | 790 [self setTabBrowserIndex:selectedIndex]; |
792 } | 791 } |
793 | 792 |
794 @end // @interface DesktopMediaPickerController | 793 @end // @interface DesktopMediaPickerController |
OLD | NEW |