| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 view that implements one download on the Download shelf. | 5 // A view 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // Overridden from views::View: | 92 // Overridden from views::View: |
| 93 void Layout() override; | 93 void Layout() override; |
| 94 gfx::Size GetPreferredSize() const override; | 94 gfx::Size GetPreferredSize() const override; |
| 95 bool OnMousePressed(const ui::MouseEvent& event) override; | 95 bool OnMousePressed(const ui::MouseEvent& event) override; |
| 96 bool OnMouseDragged(const ui::MouseEvent& event) override; | 96 bool OnMouseDragged(const ui::MouseEvent& event) override; |
| 97 void OnMouseReleased(const ui::MouseEvent& event) override; | 97 void OnMouseReleased(const ui::MouseEvent& event) override; |
| 98 void OnMouseCaptureLost() override; | 98 void OnMouseCaptureLost() override; |
| 99 bool OnKeyPressed(const ui::KeyEvent& event) override; | 99 bool OnKeyPressed(const ui::KeyEvent& event) override; |
| 100 bool GetTooltipText(const gfx::Point& p, | 100 bool GetTooltipText(const gfx::Point& p, |
| 101 base::string16* tooltip) const override; | 101 base::string16* tooltip) const override; |
| 102 void GetAccessibleState(ui::AXViewState* state) override; | 102 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 103 void OnThemeChanged() override; | 103 void OnThemeChanged() override; |
| 104 | 104 |
| 105 // Overridden from view::InkDropHostView: | 105 // Overridden from view::InkDropHostView: |
| 106 void AddInkDropLayer(ui::Layer* ink_drop_layer) override; | 106 void AddInkDropLayer(ui::Layer* ink_drop_layer) override; |
| 107 std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override; | 107 std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override; |
| 108 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight() | 108 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight() |
| 109 const override; | 109 const override; |
| 110 | 110 |
| 111 // Overridden from ui::EventHandler: | 111 // Overridden from ui::EventHandler: |
| 112 void OnGestureEvent(ui::GestureEvent* event) override; | 112 void OnGestureEvent(ui::GestureEvent* event) override; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 std::unique_ptr<extensions::ExperienceSamplingEvent> sampling_event_; | 320 std::unique_ptr<extensions::ExperienceSamplingEvent> sampling_event_; |
| 321 | 321 |
| 322 // Method factory used to delay reenabling of the item when opening the | 322 // Method factory used to delay reenabling of the item when opening the |
| 323 // downloaded file. | 323 // downloaded file. |
| 324 base::WeakPtrFactory<DownloadItemView> weak_ptr_factory_; | 324 base::WeakPtrFactory<DownloadItemView> weak_ptr_factory_; |
| 325 | 325 |
| 326 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); | 326 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); |
| 327 }; | 327 }; |
| 328 | 328 |
| 329 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H_ | 329 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H_ |
| OLD | NEW |