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

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

Issue 7056027: views: Rename child_widget() to GetChildWidget(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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/tabbed_pane/native_tabbed_pane_win.h ('k') | views/view.h » ('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) 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 "views/controls/tabbed_pane/native_tabbed_pane_win.h" 5 #include "views/controls/tabbed_pane/native_tabbed_pane_win.h"
6 6
7 #include <vssym32.h> 7 #include <vssym32.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/stl_util-inl.h" 10 #include "base/stl_util-inl.h"
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 NativeControlWin::ViewHierarchyChanged(is_add, parent, child); 357 NativeControlWin::ViewHierarchyChanged(is_add, parent, child);
358 358
359 if (is_add && (child == this) && content_window_) { 359 if (is_add && (child == this) && content_window_) {
360 // We have been added to a view hierarchy, update the FocusTraversable 360 // We have been added to a view hierarchy, update the FocusTraversable
361 // parent. 361 // parent.
362 content_window_->SetFocusTraversableParent( 362 content_window_->SetFocusTraversableParent(
363 GetWidget()->GetFocusTraversable()); 363 GetWidget()->GetFocusTraversable());
364 } 364 }
365 } 365 }
366 366
367 Widget* NativeTabbedPaneWin::GetChildWidget() {
368 return content_window_;
369 }
370
367 //////////////////////////////////////////////////////////////////////////////// 371 ////////////////////////////////////////////////////////////////////////////////
368 // NativeTabbedPaneWin, private: 372 // NativeTabbedPaneWin, private:
369 373
370 void NativeTabbedPaneWin::InitializeTabs() { 374 void NativeTabbedPaneWin::InitializeTabs() {
371 for (size_t i = 0; i < tab_titles_.size(); ++i) 375 for (size_t i = 0; i < tab_titles_.size(); ++i)
372 AddNativeTab(i, tab_titles_[i]); 376 AddNativeTab(i, tab_titles_[i]);
373 377
374 View* content_root = content_window_->GetRootView(); 378 View* content_root = content_window_->GetRootView();
375 for (std::vector<View*>::iterator tab(tab_views_.begin()); 379 for (std::vector<View*>::iterator tab(tab_views_.begin());
376 tab != tab_views_.end(); ++tab) 380 tab != tab_views_.end(); ++tab)
(...skipping 21 matching lines...) Expand all
398 //////////////////////////////////////////////////////////////////////////////// 402 ////////////////////////////////////////////////////////////////////////////////
399 // NativeTabbedPaneWrapper, public: 403 // NativeTabbedPaneWrapper, public:
400 404
401 // static 405 // static
402 NativeTabbedPaneWrapper* NativeTabbedPaneWrapper::CreateNativeWrapper( 406 NativeTabbedPaneWrapper* NativeTabbedPaneWrapper::CreateNativeWrapper(
403 TabbedPane* tabbed_pane) { 407 TabbedPane* tabbed_pane) {
404 return new NativeTabbedPaneWin(tabbed_pane); 408 return new NativeTabbedPaneWin(tabbed_pane);
405 } 409 }
406 410
407 } // namespace views 411 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/tabbed_pane/native_tabbed_pane_win.h ('k') | views/view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698