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

Side by Side Diff: chrome/browser/ui/views/bookmark_editor_view.cc

Issue 5116002: Adding the possibility to resize the "Edit Bookmark" dialog.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 10 years, 1 month 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 | « chrome/browser/ui/views/bookmark_editor_view.h ('k') | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_editor_view.h" 5 #include "chrome/browser/views/bookmark_editor_view.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 const GURL url(GetInputURL()); 94 const GURL url(GetInputURL());
95 return bb_model_->IsLoaded() && url.is_valid(); 95 return bb_model_->IsLoaded() && url.is_valid();
96 } 96 }
97 return true; 97 return true;
98 } 98 }
99 99
100 bool BookmarkEditorView::IsModal() const { 100 bool BookmarkEditorView::IsModal() const {
101 return true; 101 return true;
102 } 102 }
103 103
104 bool BookmarkEditorView::CanResize() const {
105 return true;
106 }
107
104 std::wstring BookmarkEditorView::GetWindowTitle() const { 108 std::wstring BookmarkEditorView::GetWindowTitle() const {
105 return l10n_util::GetString(IDS_BOOMARK_EDITOR_TITLE); 109 return l10n_util::GetString(IDS_BOOMARK_EDITOR_TITLE);
106 } 110 }
107 111
108 bool BookmarkEditorView::Accept() { 112 bool BookmarkEditorView::Accept() {
109 if (!IsDialogButtonEnabled(MessageBoxFlags::DIALOGBUTTON_OK)) { 113 if (!IsDialogButtonEnabled(MessageBoxFlags::DIALOGBUTTON_OK)) {
110 // The url is invalid, focus the url field. 114 // The url is invalid, focus the url field.
111 url_tf_.SelectAll(); 115 url_tf_.SelectAll();
112 url_tf_.RequestFocus(); 116 url_tf_.RequestFocus();
113 return false; 117 return false;
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 break; 576 break;
573 } 577 }
574 } 578 }
575 DCHECK(child_bb_node); 579 DCHECK(child_bb_node);
576 bb_model_->SetTitle(child_bb_node, child_b_node->GetTitle()); 580 bb_model_->SetTitle(child_bb_node, child_b_node->GetTitle());
577 } 581 }
578 ApplyNameChangesAndCreateNewGroups(child_bb_node, child_b_node, 582 ApplyNameChangesAndCreateNewGroups(child_bb_node, child_b_node,
579 parent_b_node, parent_bb_node); 583 parent_b_node, parent_bb_node);
580 } 584 }
581 } 585 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmark_editor_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698