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

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

Issue 12314090: Add utf_string_conversions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 (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"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // added to the stack because we need the information from that panel. 63 // added to the stack because we need the information from that panel.
64 if (delay_initialized_) 64 if (delay_initialized_)
65 return; 65 return;
66 Panel* panel = stacked_collection_->top_panel(); 66 Panel* panel = stacked_collection_->top_panel();
67 if (!panel) 67 if (!panel)
68 return; 68 return;
69 delay_initialized_ = true; 69 delay_initialized_ = true;
70 70
71 #if defined(OS_WIN) 71 #if defined(OS_WIN)
72 ui::win::SetAppIdForWindow( 72 ui::win::SetAppIdForWindow(
73 ShellIntegration::GetAppModelIdForProfile(UTF8ToWide(panel->app_name()), 73 ShellIntegration::GetAppModelIdForProfile(
74 panel->profile()->GetPath()), 74 base::UTF8ToWide(panel->app_name()),
75 panel->profile()->GetPath()),
75 chrome::HWNDForWidget(window_)); 76 chrome::HWNDForWidget(window_));
76 #endif 77 #endif
77 } 78 }
78 79
79 void PanelStackView::Close() { 80 void PanelStackView::Close() {
80 window_->Close(); 81 window_->Close();
81 } 82 }
82 83
83 void PanelStackView::OnPanelAddedOrRemoved(Panel* panel) { 84 void PanelStackView::OnPanelAddedOrRemoved(Panel* panel) {
84 EnsureInitialized(); 85 EnsureInitialized();
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // All the windows that share the same owner window will appear as a single 197 // All the windows that share the same owner window will appear as a single
197 // window on the taskbar. 198 // window on the taskbar.
198 ::SetWindowLongPtr(panel_window, 199 ::SetWindowLongPtr(panel_window,
199 GWLP_HWNDPARENT, 200 GWLP_HWNDPARENT,
200 reinterpret_cast<LONG>(stack_window)); 201 reinterpret_cast<LONG>(stack_window));
201 202
202 #else 203 #else
203 NOTIMPLEMENTED(); 204 NOTIMPLEMENTED();
204 #endif 205 #endif
205 } 206 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame_win.cc ('k') | chrome/browser/ui/views/panels/panel_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698