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

Side by Side Diff: chrome/browser/chromeos/ui/idle_app_name_notification_view.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/chromeos/ui/idle_app_name_notification_view.h" 5 #include "chrome/browser/chromeos/ui/idle_app_name_notification_view.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/shell_delegate.h" 10 #include "ash/shell_delegate.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 params.type = views::Widget::InitParams::TYPE_POPUP; 66 params.type = views::Widget::InitParams::TYPE_POPUP;
67 params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW; 67 params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
68 params.ownership = views::Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET; 68 params.ownership = views::Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET;
69 params.accept_events = false; 69 params.accept_events = false;
70 params.can_activate = false; 70 params.can_activate = false;
71 params.keep_on_top = true; 71 params.keep_on_top = true;
72 params.remove_standard_frame = true; 72 params.remove_standard_frame = true;
73 params.delegate = delegate; 73 params.delegate = delegate;
74 params.bounds = bounds; 74 params.bounds = bounds;
75 params.parent = ash::Shell::GetContainer( 75 params.parent = ash::Shell::GetContainer(
76 root_window, 76 root_window, ash::kShellWindowId_SettingBubbleContainer);
77 ash::internal::kShellWindowId_SettingBubbleContainer);
78 views::Widget* widget = new views::Widget; 77 views::Widget* widget = new views::Widget;
79 widget->Init(params); 78 widget->Init(params);
80 widget->SetContentsView(view); 79 widget->SetContentsView(view);
81 gfx::NativeView native_view = widget->GetNativeView(); 80 gfx::NativeView native_view = widget->GetNativeView();
82 native_view->SetName("KioskIdleAppNameNotification"); 81 native_view->SetName("KioskIdleAppNameNotification");
83 82
84 // Note: We cannot use the Window show/hide animations since they are disabled 83 // Note: We cannot use the Window show/hide animations since they are disabled
85 // for kiosk by command line. 84 // for kiosk by command line.
86 ui::LayerAnimator* animator = new ui::LayerAnimator( 85 ui::LayerAnimator* animator = new ui::LayerAnimator(
87 base::TimeDelta::FromMilliseconds(animation_time_ms)); 86 base::TimeDelta::FromMilliseconds(animation_time_ms));
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 268
270 view_ = new IdleAppNameNotificationDelegateView( 269 view_ = new IdleAppNameNotificationDelegateView(
271 this, 270 this,
272 app_name, 271 app_name,
273 error, 272 error,
274 message_visibility_time_in_ms + animation_time_ms); 273 message_visibility_time_in_ms + animation_time_ms);
275 CreateAndShowWidgetWithContent(view_, view_, animation_time_ms); 274 CreateAndShowWidgetWithContent(view_, view_, animation_time_ms);
276 } 275 }
277 276
278 } // namespace chromeos 277 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698