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

Side by Side Diff: chrome/browser/chromeos/login/background_view.cc

Issue 6452011: Rework tree APIs to reflect Google style and more const-correctness.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/login/background_view.h" 5 #include "chrome/browser/chromeos/login/background_view.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 void BackgroundView::CreateModalPopup(views::WindowDelegate* view) { 190 void BackgroundView::CreateModalPopup(views::WindowDelegate* view) {
191 views::Window* window = browser::CreateViewsWindow( 191 views::Window* window = browser::CreateViewsWindow(
192 GetNativeWindow(), gfx::Rect(), view); 192 GetNativeWindow(), gfx::Rect(), view);
193 window->SetIsAlwaysOnTop(true); 193 window->SetIsAlwaysOnTop(true);
194 window->Show(); 194 window->Show();
195 } 195 }
196 196
197 gfx::NativeWindow BackgroundView::GetNativeWindow() const { 197 gfx::NativeWindow BackgroundView::GetNativeWindow() const {
198 return 198 return
199 GTK_WINDOW(static_cast<WidgetGtk*>(GetWidget())->GetNativeView()); 199 GTK_WINDOW(static_cast<const WidgetGtk*>(GetWidget())->GetNativeView());
200 } 200 }
201 201
202 void BackgroundView::SetStatusAreaVisible(bool visible) { 202 void BackgroundView::SetStatusAreaVisible(bool visible) {
203 status_area_->SetVisible(visible); 203 status_area_->SetVisible(visible);
204 } 204 }
205 205
206 void BackgroundView::SetStatusAreaEnabled(bool enable) { 206 void BackgroundView::SetStatusAreaEnabled(bool enable) {
207 status_area_->MakeButtonsActive(enable); 207 status_area_->MakeButtonsActive(enable);
208 } 208 }
209 209
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 kBootTimesNoChromeExec, 444 kBootTimesNoChromeExec,
445 boot_times.total, 445 boot_times.total,
446 boot_times.pre_startup, 446 boot_times.pre_startup,
447 boot_times.system); 447 boot_times.system);
448 } 448 }
449 // Use UTF8ToWide once this string is localized. 449 // Use UTF8ToWide once this string is localized.
450 boot_times_label_->SetText(ASCIIToWide(boot_times_text)); 450 boot_times_label_->SetText(ASCIIToWide(boot_times_text));
451 } 451 }
452 452
453 } // namespace chromeos 453 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/candidate_window.cc ('k') | chrome/browser/chromeos/login/eula_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698