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

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

Issue 10825254: Remove views::KeyEvent, replacing uses of it with ui::KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 // Overridden from views::View: 82 // Overridden from views::View:
83 virtual void Layout() OVERRIDE; 83 virtual void Layout() OVERRIDE;
84 virtual gfx::Size GetPreferredSize() OVERRIDE; 84 virtual gfx::Size GetPreferredSize() OVERRIDE;
85 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; 85 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
86 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; 86 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE;
87 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; 87 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
88 virtual void OnMouseCaptureLost() OVERRIDE; 88 virtual void OnMouseCaptureLost() OVERRIDE;
89 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; 89 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE;
90 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; 90 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE;
91 virtual bool OnKeyPressed(const views::KeyEvent& event) OVERRIDE; 91 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
92 virtual ui::GestureStatus OnGestureEvent( 92 virtual ui::GestureStatus OnGestureEvent(
93 const views::GestureEvent& event) OVERRIDE; 93 const views::GestureEvent& event) OVERRIDE;
94 virtual bool GetTooltipText(const gfx::Point& p, 94 virtual bool GetTooltipText(const gfx::Point& p,
95 string16* tooltip) const OVERRIDE; 95 string16* tooltip) const OVERRIDE;
96 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 96 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
97 97
98 // Overridden from views::ContextMenuController. 98 // Overridden from views::ContextMenuController.
99 virtual void ShowContextMenuForView(View* source, 99 virtual void ShowContextMenuForView(View* source,
100 const gfx::Point& point) OVERRIDE; 100 const gfx::Point& point) OVERRIDE;
101 101
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 319
320 // The icon loaded in the download shelf is based on the file path of the 320 // The icon loaded in the download shelf is based on the file path of the
321 // item. Store the path used, so that we can detect a change in the path 321 // item. Store the path used, so that we can detect a change in the path
322 // and reload the icon. 322 // and reload the icon.
323 FilePath last_download_item_path_; 323 FilePath last_download_item_path_;
324 324
325 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); 325 DISALLOW_COPY_AND_ASSIGN(DownloadItemView);
326 }; 326 };
327 327
328 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H__ 328 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H__
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/crypto_module_password_dialog_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