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

Unified Diff: chrome/browser/views/bookmark_manager_view.cc

Issue 146036: Add support for vertical split into SingleSplitView. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | views/controls/single_split_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/bookmark_manager_view.cc
===================================================================
--- chrome/browser/views/bookmark_manager_view.cc (revision 19036)
+++ chrome/browser/views/bookmark_manager_view.cc (working copy)
@@ -182,7 +182,8 @@
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 @@
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 @@
// 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;
« no previous file with comments | « no previous file | views/controls/single_split_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698