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

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

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build Created 7 years, 6 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 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 // Creates a Window and adds the BookmarkEditorView to it. When the window is 115 // Creates a Window and adds the BookmarkEditorView to it. When the window is
116 // closed the BookmarkEditorView is deleted. 116 // closed the BookmarkEditorView is deleted.
117 void Show(gfx::NativeWindow parent); 117 void Show(gfx::NativeWindow parent);
118 118
119 // Closes the dialog. 119 // Closes the dialog.
120 void Close(); 120 void Close();
121 121
122 // views::ContextMenuController: 122 // views::ContextMenuController:
123 virtual void ShowContextMenuForView(views::View* source, 123 virtual void ShowContextMenuForView(views::View* source,
124 const gfx::Point& point) OVERRIDE; 124 const gfx::Point& point,
125 ui::MenuSourceType source_type) OVERRIDE;
125 126
126 private: 127 private:
127 friend class BookmarkEditorViewTest; 128 friend class BookmarkEditorViewTest;
128 129
129 // Creates the necessary sub-views, configures them, adds them to the layout, 130 // Creates the necessary sub-views, configures them, adds them to the layout,
130 // and requests the entries to display from the database. 131 // and requests the entries to display from the database.
131 void Init(); 132 void Init();
132 133
133 // BookmarkModel observer methods. Any structural change results in 134 // BookmarkModel observer methods. Any structural change results in
134 // resetting the tree model. 135 // resetting the tree model.
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 // Is the tree shown? 263 // Is the tree shown?
263 bool show_tree_; 264 bool show_tree_;
264 265
265 // List of deleted bookmark folders. 266 // List of deleted bookmark folders.
266 std::vector<int64> deletes_; 267 std::vector<int64> deletes_;
267 268
268 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); 269 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView);
269 }; 270 };
270 271
271 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ 272 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698