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

Side by Side Diff: views/controls/tabbed_pane.cc

Issue 141013: Relanding focus manager refactoring (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/controls/native_control_win.cc ('k') | views/controls/textfield/native_textfield_win.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 "views/controls/tabbed_pane.h" 5 #include "views/controls/tabbed_pane.h"
6 6
7 #include <vssym32.h> 7 #include <vssym32.h>
8 8
9 #include "app/gfx/canvas.h" 9 #include "app/gfx/canvas.h"
10 #include "app/gfx/font.h" 10 #include "app/gfx/font.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 WS_CHILD | WS_CLIPSIBLINGS | WS_VISIBLE, 165 WS_CHILD | WS_CLIPSIBLINGS | WS_VISIBLE,
166 0, 0, width(), height(), 166 0, 0, width(), height(),
167 parent_container, NULL, NULL, NULL); 167 parent_container, NULL, NULL, NULL);
168 168
169 HFONT font = ResourceBundle::GetSharedInstance(). 169 HFONT font = ResourceBundle::GetSharedInstance().
170 GetFont(ResourceBundle::BaseFont).hfont(); 170 GetFont(ResourceBundle::BaseFont).hfont();
171 SendMessage(tab_control_, WM_SETFONT, reinterpret_cast<WPARAM>(font), FALSE); 171 SendMessage(tab_control_, WM_SETFONT, reinterpret_cast<WPARAM>(font), FALSE);
172 172
173 // Create the view container which is a child of the TabControl. 173 // Create the view container which is a child of the TabControl.
174 content_window_ = new WidgetWin(); 174 content_window_ = new WidgetWin();
175 content_window_->Init(tab_control_, gfx::Rect(), false); 175 content_window_->Init(tab_control_, gfx::Rect());
176 176
177 // Explicitly setting the WS_EX_LAYOUTRTL property for the HWND (see above 177 // Explicitly setting the WS_EX_LAYOUTRTL property for the HWND (see above
178 // for a thorough explanation regarding why we waited until |content_window_| 178 // for a thorough explanation regarding why we waited until |content_window_|
179 // if created before we set this property for the tabbed pane's HWND). 179 // if created before we set this property for the tabbed pane's HWND).
180 if (UILayoutIsRightToLeft()) { 180 if (UILayoutIsRightToLeft()) {
181 l10n_util::HWNDSetRTLLayout(tab_control_); 181 l10n_util::HWNDSetRTLLayout(tab_control_);
182 } 182 }
183 183
184 RootView* root_view = content_window_->GetRootView(); 184 RootView* root_view = content_window_->GetRootView();
185 root_view->SetLayoutManager(new FillLayout()); 185 root_view->SetLayoutManager(new FillLayout());
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 CRect content_bounds; 255 CRect content_bounds;
256 if (!GetClientRect(tab_control, &content_bounds)) 256 if (!GetClientRect(tab_control, &content_bounds))
257 return; 257 return;
258 TabCtrl_AdjustRect(tab_control, FALSE, &content_bounds); 258 TabCtrl_AdjustRect(tab_control, FALSE, &content_bounds);
259 content_window_->MoveWindow(content_bounds.left, content_bounds.top, 259 content_window_->MoveWindow(content_bounds.left, content_bounds.top,
260 content_bounds.Width(), content_bounds.Height(), 260 content_bounds.Width(), content_bounds.Height(),
261 TRUE); 261 TRUE);
262 } 262 }
263 263
264 } // namespace views 264 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/native_control_win.cc ('k') | views/controls/textfield/native_textfield_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698