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

Side by Side Diff: chrome/browser/views/bookmark_menu_button.h

Issue 115309: Remove even more ATL dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_VIEWS_BOOKMARK_MENU_BUTTON_H_ 5 #ifndef CHROME_BROWSER_VIEWS_BOOKMARK_MENU_BUTTON_H_
6 #define CHROME_BROWSER_VIEWS_BOOKMARK_MENU_BUTTON_H_ 6 #define CHROME_BROWSER_VIEWS_BOOKMARK_MENU_BUTTON_H_
7 7
8 #include "base/timer.h" 8 #include "base/timer.h"
9 #include "chrome/browser/bookmarks/bookmark_drag_data.h" 9 #include "chrome/browser/bookmarks/bookmark_drag_data.h"
10 #include "chrome/browser/bookmarks/bookmark_menu_controller_win.h" 10 #include "chrome/browser/bookmarks/bookmark_menu_controller_win.h"
(...skipping 18 matching lines...) Expand all
29 virtual bool CanDrop(const OSExchangeData& data); 29 virtual bool CanDrop(const OSExchangeData& data);
30 virtual int OnDragUpdated(const views::DropTargetEvent& event); 30 virtual int OnDragUpdated(const views::DropTargetEvent& event);
31 virtual void OnDragExited(); 31 virtual void OnDragExited();
32 virtual int OnPerformDrop(const views::DropTargetEvent& event); 32 virtual int OnPerformDrop(const views::DropTargetEvent& event);
33 33
34 // BookmarkMenuController::Observer. 34 // BookmarkMenuController::Observer.
35 virtual void BookmarkMenuDeleted(BookmarkMenuController* controller); 35 virtual void BookmarkMenuDeleted(BookmarkMenuController* controller);
36 36
37 // ViewMenuDelegate. 37 // ViewMenuDelegate.
38 virtual void RunMenu(views::View* source, 38 virtual void RunMenu(views::View* source,
39 const CPoint& pt, 39 const gfx::Point& pt,
40 gfx::NativeView hwnd); 40 gfx::NativeView hwnd);
41 41
42 private: 42 private:
43 // Shows the menu. 43 // Shows the menu.
44 void RunMenu(views::View* source, 44 void RunMenu(views::View* source,
45 const CPoint& pt, 45 const gfx::Point& pt,
46 gfx::NativeView hwnd, 46 gfx::NativeView hwnd,
47 bool for_drop); 47 bool for_drop);
48 48
49 // Returns the bookmark model. 49 // Returns the bookmark model.
50 BookmarkModel* GetBookmarkModel(); 50 BookmarkModel* GetBookmarkModel();
51 51
52 // Starts the timer for showing the drop menu if it isn't running. 52 // Starts the timer for showing the drop menu if it isn't running.
53 void StartShowFolderDropMenuTimer(); 53 void StartShowFolderDropMenuTimer();
54 54
55 // Stops the timer for showing the drop menu. 55 // Stops the timer for showing the drop menu.
(...skipping 14 matching lines...) Expand all
70 // Drop operation for current drop. 70 // Drop operation for current drop.
71 int drop_operation_; 71 int drop_operation_;
72 72
73 // Timer used for showing the drop menu. 73 // Timer used for showing the drop menu.
74 base::OneShotTimer<BookmarkMenuButton> show_drop_menu_timer_; 74 base::OneShotTimer<BookmarkMenuButton> show_drop_menu_timer_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuButton); 76 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuButton);
77 }; 77 };
78 78
79 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_MENU_BUTTON_H_ 79 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_MENU_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/bookmark_manager_view.cc ('k') | chrome/browser/views/bookmark_menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698