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

Side by Side Diff: chrome/browser/views/bookmark_manager_view.cc

Issue 155214: Add 'preserve trailing view size' capability into the SingleSplitView.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « no previous file | views/controls/single_split_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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/views/bookmark_manager_view.h" 5 #include "chrome/browser/views/bookmark_manager_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/gfx/canvas.h" 9 #include "app/gfx/canvas.h"
10 #include "app/gfx/color_utils.h" 10 #include "app/gfx/color_utils.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 this, true); 177 this, true);
178 organize_menu_button->SetID(kOrganizeMenuButtonID); 178 organize_menu_button->SetID(kOrganizeMenuButtonID);
179 179
180 views::MenuButton* tools_menu_button = new views::MenuButton( 180 views::MenuButton* tools_menu_button = new views::MenuButton(
181 NULL, l10n_util::GetString(IDS_BOOKMARK_MANAGER_TOOLS_MENU), 181 NULL, l10n_util::GetString(IDS_BOOKMARK_MANAGER_TOOLS_MENU),
182 this, true); 182 this, true);
183 tools_menu_button->SetID(kToolsMenuButtonID); 183 tools_menu_button->SetID(kToolsMenuButtonID);
184 184
185 split_view_ = new views::SingleSplitView(tree_view_, table_view_, 185 split_view_ = new views::SingleSplitView(tree_view_, table_view_,
186 views::SingleSplitView::HORIZONTAL_SPLIT); 186 views::SingleSplitView::HORIZONTAL_SPLIT);
187 split_view_->set_resize_leading_on_bounds_change(false);
187 split_view_->set_background( 188 split_view_->set_background(
188 views::Background::CreateSolidBackground(kBackgroundColorBottom)); 189 views::Background::CreateSolidBackground(kBackgroundColorBottom));
189 190
190 views::GridLayout* layout = new views::GridLayout(this); 191 views::GridLayout* layout = new views::GridLayout(this);
191 SetLayoutManager(layout); 192 SetLayoutManager(layout);
192 const int top_id = 1; 193 const int top_id = 1;
193 const int split_cs_id = 2; 194 const int split_cs_id = 2;
194 layout->SetInsets(2, 0, 0, 0); // 2px padding above content. 195 layout->SetInsets(2, 0, 0, 0); // 2px padding above content.
195 views::ColumnSet* column_set = layout->AddColumnSet(top_id); 196 views::ColumnSet* column_set = layout->AddColumnSet(top_id);
196 column_set->AddColumn(views::GridLayout::LEADING, views::GridLayout::CENTER, 197 column_set->AddColumn(views::GridLayout::LEADING, views::GridLayout::CENTER,
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 file_type_info.extensions.resize(1); 782 file_type_info.extensions.resize(1);
782 file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("html")); 783 file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("html"));
783 file_type_info.include_all_files = true; 784 file_type_info.include_all_files = true;
784 select_file_dialog_ = SelectFileDialog::Create(this); 785 select_file_dialog_ = SelectFileDialog::Create(this);
785 select_file_dialog_->SelectFile( 786 select_file_dialog_->SelectFile(
786 SelectFileDialog::SELECT_SAVEAS_FILE, std::wstring(), 787 SelectFileDialog::SELECT_SAVEAS_FILE, std::wstring(),
787 FilePath(FILE_PATH_LITERAL("bookmarks.html")), &file_type_info, 0, 788 FilePath(FILE_PATH_LITERAL("bookmarks.html")), &file_type_info, 0,
788 L"html", GetWidget()->GetNativeView(), 789 L"html", GetWidget()->GetNativeView(),
789 reinterpret_cast<void*>(IDS_BOOKMARK_MANAGER_EXPORT_MENU)); 790 reinterpret_cast<void*>(IDS_BOOKMARK_MANAGER_EXPORT_MENU));
790 } 791 }
OLDNEW
« 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