OLD | NEW |
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 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARK_EDITOR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARK_EDITOR_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARK_EDITOR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARK_EDITOR_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "app/menus/simple_menu_model.h" | 9 #include "app/menus/simple_menu_model.h" |
10 #include "app/tree_node_model.h" | 10 #include "app/tree_node_model.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 virtual void ViewHierarchyChanged(bool is_add, views::View* parent, | 92 virtual void ViewHierarchyChanged(bool is_add, views::View* parent, |
93 views::View* child); | 93 views::View* child); |
94 | 94 |
95 // TreeViewObserver methods. | 95 // TreeViewObserver methods. |
96 virtual void OnTreeViewSelectionChanged(views::TreeView* tree_view); | 96 virtual void OnTreeViewSelectionChanged(views::TreeView* tree_view); |
97 virtual bool CanEdit(views::TreeView* tree_view, TreeModelNode* node); | 97 virtual bool CanEdit(views::TreeView* tree_view, TreeModelNode* node); |
98 | 98 |
99 // Textfield::Controller methods. | 99 // Textfield::Controller methods. |
100 virtual void ContentsChanged(views::Textfield* sender, | 100 virtual void ContentsChanged(views::Textfield* sender, |
101 const std::wstring& new_contents); | 101 const std::wstring& new_contents); |
102 virtual bool HandleKeystroke(views::Textfield* sender, | 102 virtual bool HandleKeyEvent(views::Textfield* sender, |
103 const views::Textfield::Keystroke&) { | 103 const views::KeyEvent& key_event) { |
104 return false; | 104 return false; |
105 } | 105 } |
106 | 106 |
107 // NativeButton. | 107 // NativeButton. |
108 virtual void ButtonPressed(views::Button* sender, const views::Event& event); | 108 virtual void ButtonPressed(views::Button* sender, const views::Event& event); |
109 | 109 |
110 // menus::SimpleMenuModel::Delegate. | 110 // menus::SimpleMenuModel::Delegate. |
111 virtual bool IsCommandIdChecked(int command_id) const; | 111 virtual bool IsCommandIdChecked(int command_id) const; |
112 virtual bool IsCommandIdEnabled(int command_id) const; | 112 virtual bool IsCommandIdEnabled(int command_id) const; |
113 virtual bool GetAcceleratorForCommandId(int command_id, | 113 virtual bool GetAcceleratorForCommandId(int command_id, |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 // nodes. | 257 // nodes. |
258 bool running_menu_for_root_; | 258 bool running_menu_for_root_; |
259 | 259 |
260 // Is the tree shown? | 260 // Is the tree shown? |
261 bool show_tree_; | 261 bool show_tree_; |
262 | 262 |
263 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); | 263 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); |
264 }; | 264 }; |
265 | 265 |
266 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARK_EDITOR_VIEW_H_ | 266 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARK_EDITOR_VIEW_H_ |
OLD | NEW |