Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: chrome/browser/ui/views/download/download_item_view.h

Issue 2447523002: [ash-md] Added different highlighting modes to the InkDropImpl. (Closed)
Patch Set: Fixed InkDropHostView::GetInkDrop() to use CreateInkDrop(). Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 GetAccessibleNodeData(ui::AXNodeData* node_data) 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::InkDrop> CreateInkDrop() override;
107 std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override; 108 std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override;
108 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight() 109 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight()
109 const override; 110 const override;
110 111
111 // Overridden from ui::EventHandler: 112 // Overridden from ui::EventHandler:
112 void OnGestureEvent(ui::GestureEvent* event) override; 113 void OnGestureEvent(ui::GestureEvent* event) override;
113 114
114 // Overridden from views::ContextMenuController. 115 // Overridden from views::ContextMenuController.
115 void ShowContextMenuForView(View* source, 116 void ShowContextMenuForView(View* source,
116 const gfx::Point& point, 117 const gfx::Point& point,
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 std::unique_ptr<extensions::ExperienceSamplingEvent> sampling_event_; 321 std::unique_ptr<extensions::ExperienceSamplingEvent> sampling_event_;
321 322
322 // Method factory used to delay reenabling of the item when opening the 323 // Method factory used to delay reenabling of the item when opening the
323 // downloaded file. 324 // downloaded file.
324 base::WeakPtrFactory<DownloadItemView> weak_ptr_factory_; 325 base::WeakPtrFactory<DownloadItemView> weak_ptr_factory_;
325 326
326 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); 327 DISALLOW_COPY_AND_ASSIGN(DownloadItemView);
327 }; 328 };
328 329
329 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H_ 330 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc ('k') | chrome/browser/ui/views/download/download_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698