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

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

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 const string16& new_contents) { 194 const string16& new_contents) {
195 UserInputChanged(); 195 UserInputChanged();
196 } 196 }
197 197
198 bool BookmarkEditorView::HandleKeyEvent(views::Textfield* sender, 198 bool BookmarkEditorView::HandleKeyEvent(views::Textfield* sender,
199 const ui::KeyEvent& key_event) { 199 const ui::KeyEvent& key_event) {
200 return false; 200 return false;
201 } 201 }
202 202
203 void BookmarkEditorView::ButtonPressed(views::Button* sender, 203 void BookmarkEditorView::ButtonPressed(views::Button* sender,
204 const views::Event& event) { 204 const ui::Event& event) {
205 DCHECK_EQ(new_folder_button_.get(), sender); 205 DCHECK_EQ(new_folder_button_.get(), sender);
206 NewFolder(); 206 NewFolder();
207 } 207 }
208 208
209 bool BookmarkEditorView::IsCommandIdChecked(int command_id) const { 209 bool BookmarkEditorView::IsCommandIdChecked(int command_id) const {
210 return false; 210 return false;
211 } 211 }
212 212
213 bool BookmarkEditorView::IsCommandIdEnabled(int command_id) const { 213 bool BookmarkEditorView::IsCommandIdEnabled(int command_id) const {
214 switch (command_id) { 214 switch (command_id) {
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 IDS_BOOKMARK_EDITOR_NEW_FOLDER_MENU_ITEM); 656 IDS_BOOKMARK_EDITOR_NEW_FOLDER_MENU_ITEM);
657 } 657 }
658 return context_menu_model_.get(); 658 return context_menu_model_.get();
659 } 659 }
660 660
661 void BookmarkEditorView::EditorTreeModel::SetTitle(ui::TreeModelNode* node, 661 void BookmarkEditorView::EditorTreeModel::SetTitle(ui::TreeModelNode* node,
662 const string16& title) { 662 const string16& title) {
663 if (!title.empty()) 663 if (!title.empty())
664 ui::TreeNodeModel<EditorNode>::SetTitle(node, title); 664 ui::TreeNodeModel<EditorNode>::SetTitle(node, title);
665 } 665 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698