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

Side by Side Diff: ash/shell/window_type_launcher.cc

Issue 196063002: Move wm/core to wm namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/shell/window_type_launcher.h" 5 #include "ash/shell/window_type_launcher.h"
6 6
7 #include "ash/root_window_controller.h" 7 #include "ash/root_window_controller.h"
8 #include "ash/screensaver/screensaver_view.h" 8 #include "ash/screensaver/screensaver_view.h"
9 #include "ash/session_state_delegate.h" 9 #include "ash/session_state_delegate.h"
10 #include "ash/shelf/shelf_widget.h" 10 #include "ash/shelf/shelf_widget.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 } // namespace 189 } // namespace
190 190
191 void InitWindowTypeLauncher() { 191 void InitWindowTypeLauncher() {
192 views::Widget* widget = 192 views::Widget* widget =
193 views::Widget::CreateWindowWithContextAndBounds( 193 views::Widget::CreateWindowWithContextAndBounds(
194 new WindowTypeLauncher, 194 new WindowTypeLauncher,
195 Shell::GetPrimaryRootWindow(), 195 Shell::GetPrimaryRootWindow(),
196 gfx::Rect(120, 150, 300, 410)); 196 gfx::Rect(120, 150, 300, 410));
197 widget->GetNativeView()->SetName("WindowTypeLauncher"); 197 widget->GetNativeView()->SetName("WindowTypeLauncher");
198 views::corewm::SetShadowType(widget->GetNativeView(), 198 wm::SetShadowType(widget->GetNativeView(),
199 views::corewm::SHADOW_TYPE_RECTANGULAR); 199 wm::SHADOW_TYPE_RECTANGULAR);
200 widget->Show(); 200 widget->Show();
201 } 201 }
202 202
203 WindowTypeLauncher::WindowTypeLauncher() 203 WindowTypeLauncher::WindowTypeLauncher()
204 : create_button_(new views::LabelButton( 204 : create_button_(new views::LabelButton(
205 this, base::ASCIIToUTF16("Create Window"))), 205 this, base::ASCIIToUTF16("Create Window"))),
206 panel_button_(new views::LabelButton( 206 panel_button_(new views::LabelButton(
207 this, base::ASCIIToUTF16("Create Panel"))), 207 this, base::ASCIIToUTF16("Create Panel"))),
208 create_nonresizable_button_(new views::LabelButton( 208 create_nonresizable_button_(new views::LabelButton(
209 this, base::ASCIIToUTF16("Create Non-Resizable Window"))), 209 this, base::ASCIIToUTF16("Create Non-Resizable Window"))),
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 gfx::Rect(point, gfx::Size()), 391 gfx::Rect(point, gfx::Size()),
392 MenuItemView::TOPLEFT, 392 MenuItemView::TOPLEFT,
393 source_type, 393 source_type,
394 MenuRunner::HAS_MNEMONICS | views::MenuRunner::CONTEXT_MENU) == 394 MenuRunner::HAS_MNEMONICS | views::MenuRunner::CONTEXT_MENU) ==
395 MenuRunner::MENU_DELETED) 395 MenuRunner::MENU_DELETED)
396 return; 396 return;
397 } 397 }
398 398
399 } // namespace shell 399 } // namespace shell
400 } // namespace ash 400 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell/content_client/shell_browser_main_parts.cc ('k') | ash/system/tray/tray_background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698