OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ |
6 #define CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ |
7 | 7 |
8 #include "app/slide_animation.h" | 8 #include "app/slide_animation.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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 | 293 |
294 // Returns the drag operations for the specified button. | 294 // Returns the drag operations for the specified button. |
295 virtual int GetDragOperations(views::View* sender, int x, int y); | 295 virtual int GetDragOperations(views::View* sender, int x, int y); |
296 | 296 |
297 // ViewMenuDelegate method. 3 types of menus may be shown: | 297 // ViewMenuDelegate method. 3 types of menus may be shown: |
298 // . the menu allowing the user to choose when the bookmark bar is visible. | 298 // . the menu allowing the user to choose when the bookmark bar is visible. |
299 // . most recently bookmarked menu | 299 // . most recently bookmarked menu |
300 // . menu for star groups. | 300 // . menu for star groups. |
301 // The latter two are handled by a MenuRunner, which builds the appropriate | 301 // The latter two are handled by a MenuRunner, which builds the appropriate |
302 // menu. | 302 // menu. |
303 virtual void RunMenu(views::View* view, const CPoint& pt, HWND hwnd); | 303 virtual void RunMenu(views::View* view, const gfx::Point& pt, HWND hwnd); |
304 | 304 |
305 // Invoked when a star entry corresponding to a URL on the bookmark bar is | 305 // Invoked when a star entry corresponding to a URL on the bookmark bar is |
306 // pressed. Forwards to the PageNavigator to open the URL. | 306 // pressed. Forwards to the PageNavigator to open the URL. |
307 virtual void ButtonPressed(views::Button* sender); | 307 virtual void ButtonPressed(views::Button* sender); |
308 | 308 |
309 // Invoked for this View, one of the buttons or the 'other' button. Shows the | 309 // Invoked for this View, one of the buttons or the 'other' button. Shows the |
310 // appropriate context menu. | 310 // appropriate context menu. |
311 virtual void ShowContextMenu(views::View* source, | 311 virtual void ShowContextMenu(views::View* source, |
312 int x, | 312 int x, |
313 int y, | 313 int y, |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 // overflow_button_ or a button on the bar. | 425 // overflow_button_ or a button on the bar. |
426 views::CustomButton* throbbing_view_; | 426 views::CustomButton* throbbing_view_; |
427 | 427 |
428 // Background for extension toolstrips. | 428 // Background for extension toolstrips. |
429 SkBitmap toolstrip_background_; | 429 SkBitmap toolstrip_background_; |
430 | 430 |
431 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 431 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
432 }; | 432 }; |
433 | 433 |
434 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ | 434 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ |
OLD | NEW |