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

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

Issue 146093: Relanding focus manager refactoring (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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) 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 "views/window/window_win.h" 5 #include "views/window/window_win.h"
6 6
7 #include <shellapi.h> 7 #include <shellapi.h>
8 8
9 #include "app/gfx/canvas_paint.h" 9 #include "app/gfx/canvas_paint.h"
10 #include "app/gfx/font.h" 10 #include "app/gfx/font.h"
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 // assorted WidgetWin functions may be called during initialization. 504 // assorted WidgetWin functions may be called during initialization.
505 is_modal_ = window_delegate_->IsModal(); 505 is_modal_ = window_delegate_->IsModal();
506 if (is_modal_) 506 if (is_modal_)
507 BecomeModal(); 507 BecomeModal();
508 508
509 if (window_style() == 0) 509 if (window_style() == 0)
510 set_window_style(CalculateWindowStyle()); 510 set_window_style(CalculateWindowStyle());
511 if (window_ex_style() == 0) 511 if (window_ex_style() == 0)
512 set_window_ex_style(CalculateWindowExStyle()); 512 set_window_ex_style(CalculateWindowExStyle());
513 513
514 WidgetWin::Init(parent, bounds, true); 514 WidgetWin::Init(parent, bounds);
515 win_util::SetWindowUserData(GetNativeView(), this); 515 win_util::SetWindowUserData(GetNativeView(), this);
516 516
517 // Create the ClientView, add it to the NonClientView and add the 517 // Create the ClientView, add it to the NonClientView and add the
518 // NonClientView to the RootView. This will cause everything to be parented. 518 // NonClientView to the RootView. This will cause everything to be parented.
519 non_client_view_->set_client_view(window_delegate_->CreateClientView(this)); 519 non_client_view_->set_client_view(window_delegate_->CreateClientView(this));
520 WidgetWin::SetContentsView(non_client_view_); 520 WidgetWin::SetContentsView(non_client_view_);
521 521
522 UpdateWindowTitle(); 522 UpdateWindowTitle();
523 523
524 SetInitialBounds(bounds); 524 SetInitialBounds(bounds);
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
1416 } 1416 }
1417 return TRUE; 1417 return TRUE;
1418 } 1418 }
1419 } // namespace 1419 } // namespace
1420 1420
1421 void Window::CloseAllSecondaryWindows() { 1421 void Window::CloseAllSecondaryWindows() {
1422 EnumThreadWindows(GetCurrentThreadId(), WindowCallbackProc, 0); 1422 EnumThreadWindows(GetCurrentThreadId(), WindowCallbackProc, 0);
1423 } 1423 }
1424 1424
1425 } // namespace views 1425 } // namespace views
OLDNEW
« chrome/browser/views/tab_contents/tab_contents_view_win.h ('K') | « views/widget/widget_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698