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

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

Issue 869453002: Define class names for views class in c/b/ui/views (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: addressed comments Created 5 years, 11 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/views/bookmarks/bookmark_editor_view.h" 5 #include "chrome/browser/ui/views/bookmarks/bookmark_editor_view.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 if (context_menu_runner_->RunMenuAt(source->GetWidget()->GetTopLevelWidget(), 259 if (context_menu_runner_->RunMenuAt(source->GetWidget()->GetTopLevelWidget(),
260 NULL, 260 NULL,
261 gfx::Rect(point, gfx::Size()), 261 gfx::Rect(point, gfx::Size()),
262 views::MENU_ANCHOR_TOPRIGHT, 262 views::MENU_ANCHOR_TOPRIGHT,
263 source_type) == 263 source_type) ==
264 views::MenuRunner::MENU_DELETED) { 264 views::MenuRunner::MENU_DELETED) {
265 return; 265 return;
266 } 266 }
267 } 267 }
268 268
269 const char* BookmarkEditorView::GetClassName() const {
270 return "BookmarkEditorView";
271 }
272
269 void BookmarkEditorView::Init() { 273 void BookmarkEditorView::Init() {
270 bb_model_->AddObserver(this); 274 bb_model_->AddObserver(this);
271 275
272 title_label_ = new views::Label( 276 title_label_ = new views::Label(
273 l10n_util::GetStringUTF16(IDS_BOOKMARK_EDITOR_NAME_LABEL)); 277 l10n_util::GetStringUTF16(IDS_BOOKMARK_EDITOR_NAME_LABEL));
274 278
275 base::string16 title; 279 base::string16 title;
276 GURL url; 280 GURL url;
277 if (details_.type == EditDetails::EXISTING_NODE) { 281 if (details_.type == EditDetails::EXISTING_NODE) {
278 title = details_.existing_node->GetTitle(); 282 title = details_.existing_node->GetTitle();
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 } 645 }
642 return context_menu_model_.get(); 646 return context_menu_model_.get();
643 } 647 }
644 648
645 void BookmarkEditorView::EditorTreeModel::SetTitle( 649 void BookmarkEditorView::EditorTreeModel::SetTitle(
646 ui::TreeModelNode* node, 650 ui::TreeModelNode* node,
647 const base::string16& title) { 651 const base::string16& title) {
648 if (!title.empty()) 652 if (!title.empty())
649 ui::TreeNodeModel<EditorNode>::SetTitle(node, title); 653 ui::TreeNodeModel<EditorNode>::SetTitle(node, title);
650 } 654 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698