OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // DownloadObserver method | 75 // DownloadObserver method |
76 virtual void OnDownloadUpdated(DownloadItem* download) OVERRIDE; | 76 virtual void OnDownloadUpdated(DownloadItem* download) OVERRIDE; |
77 virtual void OnDownloadFileCompleted(DownloadItem* download) OVERRIDE { } | 77 virtual void OnDownloadFileCompleted(DownloadItem* download) OVERRIDE { } |
78 virtual void OnDownloadOpened(DownloadItem* download) OVERRIDE; | 78 virtual void OnDownloadOpened(DownloadItem* download) OVERRIDE; |
79 | 79 |
80 // Overridden from views::View: | 80 // Overridden from views::View: |
81 virtual void Layout() OVERRIDE; | 81 virtual void Layout() OVERRIDE; |
82 virtual gfx::Size GetPreferredSize() OVERRIDE; | 82 virtual gfx::Size GetPreferredSize() OVERRIDE; |
83 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 83 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; |
84 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; | 84 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; |
85 virtual void OnMouseReleased(const views::MouseEvent& event, | 85 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; |
86 bool canceled) OVERRIDE; | 86 virtual void OnMouseCaptureLost() OVERRIDE; |
87 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; | 87 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; |
88 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; | 88 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; |
89 virtual bool OnKeyPressed(const views::KeyEvent& event) OVERRIDE; | 89 virtual bool OnKeyPressed(const views::KeyEvent& event) OVERRIDE; |
90 virtual bool GetTooltipText(const gfx::Point& p, | 90 virtual bool GetTooltipText(const gfx::Point& p, |
91 std::wstring* tooltip) OVERRIDE; | 91 std::wstring* tooltip) OVERRIDE; |
92 virtual void ShowContextMenu(const gfx::Point& p, | 92 virtual void ShowContextMenu(const gfx::Point& p, |
93 bool is_mouse_gesture) OVERRIDE; | 93 bool is_mouse_gesture) OVERRIDE; |
94 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 94 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
95 | 95 |
96 // ButtonListener implementation. | 96 // ButtonListener implementation. |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 // might delete us). | 284 // might delete us). |
285 bool* deleted_; | 285 bool* deleted_; |
286 | 286 |
287 // The name of this view as reported to assistive technology. | 287 // The name of this view as reported to assistive technology. |
288 string16 accessible_name_; | 288 string16 accessible_name_; |
289 | 289 |
290 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); | 290 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); |
291 }; | 291 }; |
292 | 292 |
293 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_ITEM_VIEW_H__ | 293 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_ITEM_VIEW_H__ |
OLD | NEW |