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

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

Issue 7349021: Convert some more view methods to the ui/views style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 <vector> 5 #include <vector>
6 6
7 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/chromeos/login/views_eula_screen_actor.h" 8 #include "chrome/browser/chromeos/login/views_eula_screen_actor.h"
9 #include "chrome/browser/chromeos/login/views_oobe_display.h" 9 #include "chrome/browser/chromeos/login/views_oobe_display.h"
10 #include "chrome/browser/chromeos/login/views_network_screen_actor.h" 10 #include "chrome/browser/chromeos/login/views_network_screen_actor.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 #endif 94 #endif
95 } else { 95 } else {
96 return false; 96 return false;
97 } 97 }
98 98
99 return true; 99 return true;
100 } 100 }
101 101
102 virtual void Layout() { 102 virtual void Layout() {
103 for (int i = 0; i < child_count(); ++i) { 103 for (int i = 0; i < child_count(); ++i) {
104 views::View* cur = GetChildViewAt(i); 104 views::View* cur = child_at(i);
105 if (cur->IsVisible()) 105 if (cur->IsVisible())
106 cur->SetBounds(0, 0, width(), height()); 106 cur->SetBounds(0, 0, width(), height());
107 } 107 }
108 } 108 }
109 109
110 private: 110 private:
111 #if !defined(OFFICIAL_BUILD) 111 #if !defined(OFFICIAL_BUILD)
112 views::Accelerator accel_login_screen_; 112 views::Accelerator accel_login_screen_;
113 views::Accelerator accel_network_screen_; 113 views::Accelerator accel_network_screen_;
114 views::Accelerator accel_update_screen_; 114 views::Accelerator accel_update_screen_;
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 255
256 void ViewsOobeDisplay::SetScreenSize(const gfx::Size &screen_size) { 256 void ViewsOobeDisplay::SetScreenSize(const gfx::Size &screen_size) {
257 screen_size_ = screen_size; 257 screen_size_ = screen_size;
258 } 258 }
259 259
260 void ViewsOobeDisplay::SetScreenObserver(ScreenObserver* screen_observer) { 260 void ViewsOobeDisplay::SetScreenObserver(ScreenObserver* screen_observer) {
261 screen_observer_ = screen_observer; 261 screen_observer_ = screen_observer;
262 } 262 }
263 263
264 } // namespace chromeos 264 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/eula_view.cc ('k') | chrome/browser/chromeos/notifications/balloon_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698