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

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

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months 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 | Annotate | Revision Log
OLDNEW
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; 90 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
91 virtual bool GetTooltipText(const gfx::Point& p, 91 virtual bool GetTooltipText(const gfx::Point& p,
92 string16* tooltip) const OVERRIDE; 92 string16* tooltip) const OVERRIDE;
93 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 93 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
94 virtual void OnThemeChanged() OVERRIDE; 94 virtual void OnThemeChanged() OVERRIDE;
95 95
96 // Overridden from ui::EventHandler: 96 // Overridden from ui::EventHandler:
97 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 97 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
98 98
99 // Overridden from views::ContextMenuController. 99 // Overridden from views::ContextMenuController.
100 virtual void ShowContextMenuForView(View* source, 100 virtual void ShowContextMenuForView(
101 const gfx::Point& point) OVERRIDE; 101 View* source,
102 const gfx::Point& point,
103 ui::ContextMenuSourceType source_type) OVERRIDE;
102 104
103 // ButtonListener implementation. 105 // ButtonListener implementation.
104 virtual void ButtonPressed(views::Button* sender, 106 virtual void ButtonPressed(views::Button* sender,
105 const ui::Event& event) OVERRIDE; 107 const ui::Event& event) OVERRIDE;
106 108
107 // ui::AnimationDelegate implementation. 109 // ui::AnimationDelegate implementation.
108 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; 110 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
109 111
110 protected: 112 protected:
111 // Overridden from views::View: 113 // Overridden from views::View:
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 325
324 // The icon loaded in the download shelf is based on the file path of the 326 // The icon loaded in the download shelf is based on the file path of the
325 // item. Store the path used, so that we can detect a change in the path 327 // item. Store the path used, so that we can detect a change in the path
326 // and reload the icon. 328 // and reload the icon.
327 base::FilePath last_download_item_path_; 329 base::FilePath last_download_item_path_;
328 330
329 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); 331 DISALLOW_COPY_AND_ASSIGN(DownloadItemView);
330 }; 332 };
331 333
332 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H__ 334 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698