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

Side by Side Diff: chrome/browser/ui/views/panels/panel_stack_view.cc

Issue 14188014: Rename NativePanelStack to NativePanelStackWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « chrome/browser/ui/views/panels/panel_stack_view.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/panels/panel_stack_view.h" 5 #include "chrome/browser/ui/views/panels/panel_stack_view.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/panels/panel.h" 10 #include "chrome/browser/ui/panels/panel.h"
11 #include "chrome/browser/ui/panels/stacked_panel_collection.h" 11 #include "chrome/browser/ui/panels/stacked_panel_collection.h"
12 #include "chrome/browser/ui/views/panels/panel_view.h" 12 #include "chrome/browser/ui/views/panels/panel_view.h"
13 #include "chrome/common/extensions/extension.h" 13 #include "chrome/common/extensions/extension.h"
14 #include "ui/gfx/image/image_skia.h" 14 #include "ui/gfx/image/image_skia.h"
15 #include "ui/gfx/rect.h" 15 #include "ui/gfx/rect.h"
16 #include "ui/views/widget/widget.h" 16 #include "ui/views/widget/widget.h"
17 17
18 #if defined(OS_WIN) 18 #if defined(OS_WIN)
19 #include "base/win/windows_version.h" 19 #include "base/win/windows_version.h"
20 #include "chrome/browser/shell_integration.h" 20 #include "chrome/browser/shell_integration.h"
21 #include "chrome/browser/ui/views/panels/taskbar_window_thumbnailer_win.h" 21 #include "chrome/browser/ui/views/panels/taskbar_window_thumbnailer_win.h"
22 #include "ui/base/win/shell.h" 22 #include "ui/base/win/shell.h"
23 #include "ui/views/win/hwnd_util.h" 23 #include "ui/views/win/hwnd_util.h"
24 #endif 24 #endif
25 25
26 // static 26 // static
27 NativePanelStack* NativePanelStack::Create( 27 NativePanelStackWindow* NativePanelStackWindow::Create(
28 scoped_ptr<StackedPanelCollection> stacked_collection) { 28 scoped_ptr<StackedPanelCollection> stacked_collection) {
29 #if defined(OS_WIN) 29 #if defined(OS_WIN)
30 return new PanelStackView(stacked_collection.Pass()); 30 return new PanelStackView(stacked_collection.Pass());
31 #else 31 #else
32 NOTIMPLEMENTED(); 32 NOTIMPLEMENTED();
33 return NULL; 33 return NULL;
34 #endif 34 #endif
35 } 35 }
36 36
37 PanelStackView::PanelStackView( 37 PanelStackView::PanelStackView(
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 stacked_collection_->panels().begin(); 234 stacked_collection_->panels().begin();
235 iter != stacked_collection_->panels().end(); ++iter) { 235 iter != stacked_collection_->panels().end(); ++iter) {
236 Panel* panel = *iter; 236 Panel* panel = *iter;
237 native_panel_windows.push_back( 237 native_panel_windows.push_back(
238 views::HWNDForWidget( 238 views::HWNDForWidget(
239 static_cast<PanelView*>(panel->native_panel())->window())); 239 static_cast<PanelView*>(panel->native_panel())->window()));
240 } 240 }
241 thumbnailer_->Start(native_panel_windows); 241 thumbnailer_->Start(native_panel_windows);
242 #endif 242 #endif
243 } 243 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/panels/panel_stack_view.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698