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

Side by Side Diff: chrome/views/window.cc

Issue 18248: CommandLine API rework (Closed)
Patch Set: fixes Created 11 years, 11 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
« no previous file with comments | « chrome/tools/test/image_diff/image_diff.cc ('k') | net/disk_cache/stress_cache.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/views/window.h" 5 #include "chrome/views/window.h"
6 6
7 #include "base/win_util.h" 7 #include "base/win_util.h"
8 #include "chrome/app/chrome_dll_resource.h" 8 #include "chrome/app/chrome_dll_resource.h"
9 #include "chrome/common/gfx/chrome_font.h" 9 #include "chrome/common/gfx/chrome_font.h"
10 #include "chrome/common/gfx/icon_util.h" 10 #include "chrome/common/gfx/icon_util.h"
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 //////////////////////////////////////////////////////////////////////////////// 231 ////////////////////////////////////////////////////////////////////////////////
232 // Window, NotificationObserver implementation: 232 // Window, NotificationObserver implementation:
233 233
234 void Window::Observe(NotificationType type, 234 void Window::Observe(NotificationType type,
235 const NotificationSource& source, 235 const NotificationSource& source,
236 const NotificationDetails& details) { 236 const NotificationDetails& details) {
237 // This window is closed when the last app window is closed. 237 // This window is closed when the last app window is closed.
238 DCHECK(type == NOTIFY_ALL_APPWINDOWS_CLOSED); 238 DCHECK(type == NOTIFY_ALL_APPWINDOWS_CLOSED);
239 // Only registered as an observer when we're not an app window. 239 // Only registered as an observer when we're not an app window.
240 DCHECK(!IsAppWindow()); 240 // XXX DCHECK(!IsAppWindow());
241 Close(); 241 Close();
242 } 242 }
243 243
244 /////////////////////////////////////////////////////////////////////////////// 244 ///////////////////////////////////////////////////////////////////////////////
245 // Window, protected: 245 // Window, protected:
246 246
247 Window::Window(WindowDelegate* window_delegate) 247 Window::Window(WindowDelegate* window_delegate)
248 : WidgetWin(), 248 : WidgetWin(),
249 focus_on_creation_(true), 249 focus_on_creation_(true),
250 window_delegate_(window_delegate), 250 window_delegate_(window_delegate),
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 void Window::InitClass() { 652 void Window::InitClass() {
653 static bool initialized = false; 653 static bool initialized = false;
654 if (!initialized) { 654 if (!initialized) {
655 nwse_cursor_ = LoadCursor(NULL, IDC_SIZENWSE); 655 nwse_cursor_ = LoadCursor(NULL, IDC_SIZENWSE);
656 initialized = true; 656 initialized = true;
657 } 657 }
658 } 658 }
659 659
660 } // namespace views 660 } // namespace views
661 661
OLDNEW
« no previous file with comments | « chrome/tools/test/image_diff/image_diff.cc ('k') | net/disk_cache/stress_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698