| OLD | NEW |
| 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_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 226 |
| 227 // MenuButtonDelegate: | 227 // MenuButtonDelegate: |
| 228 virtual void RunMenu(views::View* view, const gfx::Point& pt) OVERRIDE; | 228 virtual void RunMenu(views::View* view, const gfx::Point& pt) OVERRIDE; |
| 229 | 229 |
| 230 // ButtonListener: | 230 // ButtonListener: |
| 231 virtual void ButtonPressed(views::Button* sender, | 231 virtual void ButtonPressed(views::Button* sender, |
| 232 const views::Event& event) OVERRIDE; | 232 const views::Event& event) OVERRIDE; |
| 233 | 233 |
| 234 // ContextMenuController | 234 // ContextMenuController |
| 235 virtual void ShowContextMenuForView(views::View* source, | 235 virtual void ShowContextMenuForView(views::View* source, |
| 236 const gfx::Point& p, | 236 const gfx::Point& point) OVERRIDE; |
| 237 bool is_mouse_gesture) OVERRIDE; | |
| 238 | 237 |
| 239 // NotificationService: | 238 // NotificationService: |
| 240 virtual void Observe(int type, | 239 virtual void Observe(int type, |
| 241 const content::NotificationSource& source, | 240 const content::NotificationSource& source, |
| 242 const content::NotificationDetails& details) OVERRIDE; | 241 const content::NotificationDetails& details) OVERRIDE; |
| 243 | 242 |
| 244 // If true we're running tests. This short circuits a couple of animations. | 243 // If true we're running tests. This short circuits a couple of animations. |
| 245 static bool testing_; | 244 static bool testing_; |
| 246 | 245 |
| 247 private: | 246 private: |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 | 408 |
| 410 BookmarkBar::State bookmark_bar_state_; | 409 BookmarkBar::State bookmark_bar_state_; |
| 411 | 410 |
| 412 // Are we animating to or from the detached state? | 411 // Are we animating to or from the detached state? |
| 413 bool animating_detached_; | 412 bool animating_detached_; |
| 414 | 413 |
| 415 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 414 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
| 416 }; | 415 }; |
| 417 | 416 |
| 418 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 417 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
| OLD | NEW |