Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: chrome/browser/media/desktop_media_list_ash.cc

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/media/desktop_media_list_ash.h" 5 #include "chrome/browser/media/desktop_media_list_ash.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/shell_window_ids.h" 10 #include "ash/shell_window_ids.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 if (source_types_ & SCREENS) { 180 if (source_types_ & SCREENS) {
181 SourceDescription screen_source( 181 SourceDescription screen_source(
182 content::DesktopMediaID::RegisterAuraWindow(*iter), (*iter)->title()); 182 content::DesktopMediaID::RegisterAuraWindow(*iter), (*iter)->title());
183 sources->push_back(screen_source); 183 sources->push_back(screen_source);
184 184
185 CaptureThumbnail(screen_source.id, *iter); 185 CaptureThumbnail(screen_source.id, *iter);
186 } 186 }
187 187
188 if (source_types_ & WINDOWS) { 188 if (source_types_ & WINDOWS) {
189 EnumerateWindowsForRoot( 189 EnumerateWindowsForRoot(
190 sources, *iter, ash::internal::kShellWindowId_DefaultContainer); 190 sources, *iter, ash::kShellWindowId_DefaultContainer);
191 EnumerateWindowsForRoot( 191 EnumerateWindowsForRoot(
192 sources, *iter, ash::internal::kShellWindowId_AlwaysOnTopContainer); 192 sources, *iter, ash::kShellWindowId_AlwaysOnTopContainer);
193 EnumerateWindowsForRoot( 193 EnumerateWindowsForRoot(
194 sources, *iter, ash::internal::kShellWindowId_DockedContainer); 194 sources, *iter, ash::kShellWindowId_DockedContainer);
195 } 195 }
196 } 196 }
197 } 197 }
198 198
199 void DesktopMediaListAsh::CaptureThumbnail(content::DesktopMediaID id, 199 void DesktopMediaListAsh::CaptureThumbnail(content::DesktopMediaID id,
200 aura::Window* window) { 200 aura::Window* window) {
201 gfx::Rect window_rect(window->bounds().width(), window->bounds().height()); 201 gfx::Rect window_rect(window->bounds().width(), window->bounds().height());
202 gfx::Rect scaled_rect = media::ComputeLetterboxRegion( 202 gfx::Rect scaled_rect = media::ComputeLetterboxRegion(
203 gfx::Rect(thumbnail_size_), window_rect.size()); 203 gfx::Rect(thumbnail_size_), window_rect.size());
204 204
(...skipping 24 matching lines...) Expand all
229 if (!pending_window_capture_requests_) { 229 if (!pending_window_capture_requests_) {
230 // Once we've finished capturing all windows post a task for the next list 230 // Once we've finished capturing all windows post a task for the next list
231 // update. 231 // update.
232 BrowserThread::PostDelayedTask( 232 BrowserThread::PostDelayedTask(
233 BrowserThread::UI, FROM_HERE, 233 BrowserThread::UI, FROM_HERE,
234 base::Bind(&DesktopMediaListAsh::Refresh, 234 base::Bind(&DesktopMediaListAsh::Refresh,
235 weak_factory_.GetWeakPtr()), 235 weak_factory_.GetWeakPtr()),
236 update_period_); 236 update_period_);
237 } 237 }
238 } 238 }
OLDNEW
« no previous file with comments | « chrome/browser/fullscreen_win.cc ('k') | chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698