| 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 // A ChromeView that implements one download on the Download shelf. | 5 // A ChromeView that implements one download on the Download shelf. |
| 6 // Each DownloadItemView contains an application icon, a text label | 6 // Each DownloadItemView contains an application icon, a text label |
| 7 // indicating the download's file name, a text label indicating the | 7 // indicating the download's file name, a text label indicating the |
| 8 // download's status (such as the number of bytes downloaded so far) | 8 // download's status (such as the number of bytes downloaded so far) |
| 9 // and a button for canceling an in progress download, or opening | 9 // and a button for canceling an in progress download, or opening |
| 10 // the completed download. | 10 // the completed download. |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 virtual void OnMouseCaptureLost() OVERRIDE; | 88 virtual void OnMouseCaptureLost() OVERRIDE; |
| 89 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; | 89 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; |
| 90 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; | 90 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
| 91 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 91 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
| 92 virtual bool GetTooltipText(const gfx::Point& p, | 92 virtual bool GetTooltipText(const gfx::Point& p, |
| 93 string16* tooltip) const OVERRIDE; | 93 string16* tooltip) const OVERRIDE; |
| 94 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 94 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 95 virtual void OnThemeChanged() OVERRIDE; | 95 virtual void OnThemeChanged() OVERRIDE; |
| 96 | 96 |
| 97 // Overridden from ui::EventHandler: | 97 // Overridden from ui::EventHandler: |
| 98 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 98 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 99 | 99 |
| 100 // Overridden from views::ContextMenuController. | 100 // Overridden from views::ContextMenuController. |
| 101 virtual void ShowContextMenuForView(View* source, | 101 virtual void ShowContextMenuForView(View* source, |
| 102 const gfx::Point& point) OVERRIDE; | 102 const gfx::Point& point) OVERRIDE; |
| 103 | 103 |
| 104 // ButtonListener implementation. | 104 // ButtonListener implementation. |
| 105 virtual void ButtonPressed(views::Button* sender, | 105 virtual void ButtonPressed(views::Button* sender, |
| 106 const ui::Event& event) OVERRIDE; | 106 const ui::Event& event) OVERRIDE; |
| 107 | 107 |
| 108 // ui::AnimationDelegate implementation. | 108 // ui::AnimationDelegate implementation. |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 | 329 |
| 330 // The icon loaded in the download shelf is based on the file path of the | 330 // The icon loaded in the download shelf is based on the file path of the |
| 331 // item. Store the path used, so that we can detect a change in the path | 331 // item. Store the path used, so that we can detect a change in the path |
| 332 // and reload the icon. | 332 // and reload the icon. |
| 333 FilePath last_download_item_path_; | 333 FilePath last_download_item_path_; |
| 334 | 334 |
| 335 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); | 335 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); |
| 336 }; | 336 }; |
| 337 | 337 |
| 338 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H__ | 338 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H__ |
| OLD | NEW |