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 DownloadItemViewMd contains an application icon, a text label | 6 // Each DownloadItemViewMd 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 void OnMouseCaptureLost() override; | 100 void OnMouseCaptureLost() override; |
101 bool OnKeyPressed(const ui::KeyEvent& event) override; | 101 bool OnKeyPressed(const ui::KeyEvent& event) override; |
102 bool GetTooltipText(const gfx::Point& p, | 102 bool GetTooltipText(const gfx::Point& p, |
103 base::string16* tooltip) const override; | 103 base::string16* tooltip) const override; |
104 void GetAccessibleState(ui::AXViewState* state) override; | 104 void GetAccessibleState(ui::AXViewState* state) override; |
105 void OnThemeChanged() override; | 105 void OnThemeChanged() override; |
106 | 106 |
107 // Overridden from view::InkDropHostView: | 107 // Overridden from view::InkDropHostView: |
108 void AddInkDropLayer(ui::Layer* ink_drop_layer) override; | 108 void AddInkDropLayer(ui::Layer* ink_drop_layer) override; |
109 std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override; | 109 std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override; |
110 std::unique_ptr<views::InkDropHover> CreateInkDropHover() const override; | 110 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight() |
| 111 const override; |
111 | 112 |
112 // Overridden from ui::EventHandler: | 113 // Overridden from ui::EventHandler: |
113 void OnGestureEvent(ui::GestureEvent* event) override; | 114 void OnGestureEvent(ui::GestureEvent* event) override; |
114 | 115 |
115 // Overridden from views::ContextMenuController. | 116 // Overridden from views::ContextMenuController. |
116 void ShowContextMenuForView(View* source, | 117 void ShowContextMenuForView(View* source, |
117 const gfx::Point& point, | 118 const gfx::Point& point, |
118 ui::MenuSourceType source_type) override; | 119 ui::MenuSourceType source_type) override; |
119 | 120 |
120 // ButtonListener implementation. | 121 // ButtonListener implementation. |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 std::unique_ptr<extensions::ExperienceSamplingEvent> sampling_event_; | 322 std::unique_ptr<extensions::ExperienceSamplingEvent> sampling_event_; |
322 | 323 |
323 // Method factory used to delay reenabling of the item when opening the | 324 // Method factory used to delay reenabling of the item when opening the |
324 // downloaded file. | 325 // downloaded file. |
325 base::WeakPtrFactory<DownloadItemViewMd> weak_ptr_factory_; | 326 base::WeakPtrFactory<DownloadItemViewMd> weak_ptr_factory_; |
326 | 327 |
327 DISALLOW_COPY_AND_ASSIGN(DownloadItemViewMd); | 328 DISALLOW_COPY_AND_ASSIGN(DownloadItemViewMd); |
328 }; | 329 }; |
329 | 330 |
330 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_MD_H_ | 331 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_MD_H_ |
OLD | NEW |