diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-24 09:40:35 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-24 09:40:35 +0000 |
commit | ea36e32155bfe33d4cad2fbfeffc54edc7de1cb3 (patch) | |
tree | 83a4dacf9e91d2cf671b9a7040a9c6a4f6beda79 /chrome | |
parent | 404a9e22401a2fe25d0eb0ea7fa4370ec46fe68c (diff) | |
download | chromium_src-ea36e32155bfe33d4cad2fbfeffc54edc7de1cb3.zip chromium_src-ea36e32155bfe33d4cad2fbfeffc54edc7de1cb3.tar.gz chromium_src-ea36e32155bfe33d4cad2fbfeffc54edc7de1cb3.tar.bz2 |
Add support for vertical split into SingleSplitView.
Review URL: http://codereview.chromium.org/146036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19107 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/views/bookmark_manager_view.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/views/bookmark_manager_view.cc b/chrome/browser/views/bookmark_manager_view.cc index 4673c71..e85c8a2 100644 --- a/chrome/browser/views/bookmark_manager_view.cc +++ b/chrome/browser/views/bookmark_manager_view.cc @@ -182,7 +182,8 @@ BookmarkManagerView::BookmarkManagerView(Profile* profile) this, true); tools_menu_button->SetID(kToolsMenuButtonID); - split_view_ = new views::SingleSplitView(tree_view_, table_view_); + split_view_ = new views::SingleSplitView(tree_view_, table_view_, + views::SingleSplitView::HORIZONTAL_SPLIT); split_view_->set_background( views::Background::CreateSolidBackground(kBackgroundColorBottom)); @@ -349,7 +350,7 @@ std::wstring BookmarkManagerView::GetWindowName() const { void BookmarkManagerView::WindowClosing() { g_browser_process->local_state()->SetInteger( - prefs::kBookmarkManagerSplitLocation, split_view_->divider_x()); + prefs::kBookmarkManagerSplitLocation, split_view_->divider_offset()); } bool BookmarkManagerView::AcceleratorPressed( @@ -644,7 +645,7 @@ void BookmarkManagerView::PrepareForShow() { // Make sure the user can see both the tree/table. split_x = std::min(split_view_->width() - min_split_size, std::max(min_split_size, split_x)); - split_view_->set_divider_x(split_x); + split_view_->set_divider_offset(split_x); if (!GetBookmarkModel()->IsLoaded()) { search_tf_->SetReadOnly(true); return; |