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

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

Issue 125148: Making FocusManager portable to toolkit_views (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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
« no previous file with comments | « views/widget/widget_win.cc ('k') | no next file » | 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 "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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 // assorted WidgetWin functions may be called during initialization. 506 // assorted WidgetWin functions may be called during initialization.
507 is_modal_ = window_delegate_->IsModal(); 507 is_modal_ = window_delegate_->IsModal();
508 if (is_modal_) 508 if (is_modal_)
509 BecomeModal(); 509 BecomeModal();
510 510
511 if (window_style() == 0) 511 if (window_style() == 0)
512 set_window_style(CalculateWindowStyle()); 512 set_window_style(CalculateWindowStyle());
513 if (window_ex_style() == 0) 513 if (window_ex_style() == 0)
514 set_window_ex_style(CalculateWindowExStyle()); 514 set_window_ex_style(CalculateWindowExStyle());
515 515
516 WidgetWin::Init(parent, bounds, true); 516 WidgetWin::Init(parent, bounds);
517 win_util::SetWindowUserData(GetNativeView(), this); 517 win_util::SetWindowUserData(GetNativeView(), this);
518 518
519 // Create the ClientView, add it to the NonClientView and add the 519 // Create the ClientView, add it to the NonClientView and add the
520 // NonClientView to the RootView. This will cause everything to be parented. 520 // NonClientView to the RootView. This will cause everything to be parented.
521 non_client_view_->set_client_view(window_delegate_->CreateClientView(this)); 521 non_client_view_->set_client_view(window_delegate_->CreateClientView(this));
522 WidgetWin::SetContentsView(non_client_view_); 522 WidgetWin::SetContentsView(non_client_view_);
523 523
524 UpdateWindowTitle(); 524 UpdateWindowTitle();
525 525
526 SetInitialBounds(bounds); 526 SetInitialBounds(bounds);
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 } 1402 }
1403 return TRUE; 1403 return TRUE;
1404 } 1404 }
1405 } // namespace 1405 } // namespace
1406 1406
1407 void Window::CloseAllSecondaryWindows() { 1407 void Window::CloseAllSecondaryWindows() {
1408 EnumThreadWindows(GetCurrentThreadId(), WindowCallbackProc, 0); 1408 EnumThreadWindows(GetCurrentThreadId(), WindowCallbackProc, 0);
1409 } 1409 }
1410 1410
1411 } // namespace views 1411 } // namespace views
OLDNEW
« no previous file with comments | « views/widget/widget_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698