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

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

Issue 9309110: Refactored MouseWatcher to allow regions other than Views to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review nits Created 8 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/download/download_shelf_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Invoked when the user clicks the close button. Asks the browser to 69 // Invoked when the user clicks the close button. Asks the browser to
70 // hide the download shelf. 70 // hide the download shelf.
71 virtual void ButtonPressed(views::Button* button, 71 virtual void ButtonPressed(views::Button* button,
72 const views::Event& event) OVERRIDE; 72 const views::Event& event) OVERRIDE;
73 73
74 // Implementation of DownloadShelf. 74 // Implementation of DownloadShelf.
75 virtual bool IsShowing() const OVERRIDE; 75 virtual bool IsShowing() const OVERRIDE;
76 virtual bool IsClosing() const OVERRIDE; 76 virtual bool IsClosing() const OVERRIDE;
77 virtual Browser* browser() const OVERRIDE; 77 virtual Browser* browser() const OVERRIDE;
78 78
79 // Implementation of MouseWatcherDelegate OVERRIDE. 79 // Implementation of MouseWatcherListener OVERRIDE.
80 virtual void MouseMovedOutOfView() OVERRIDE; 80 virtual void MouseMovedOutOfHost() OVERRIDE;
81 81
82 // Override views::FocusChangeListener method from AccessiblePaneView. 82 // Override views::FocusChangeListener method from AccessiblePaneView.
83 virtual void OnWillChangeFocus(View* focused_before, 83 virtual void OnWillChangeFocus(View* focused_before,
84 View* focused_now) OVERRIDE; 84 View* focused_now) OVERRIDE;
85 virtual void OnDidChangeFocus(View* focused_before, 85 virtual void OnDidChangeFocus(View* focused_before,
86 View* focused_now) OVERRIDE; 86 View* focused_now) OVERRIDE;
87 87
88 // Removes a specified download view. The supplied view is deleted after 88 // Removes a specified download view. The supplied view is deleted after
89 // it's removed. 89 // it's removed.
90 void RemoveDownloadView(views::View* view); 90 void RemoveDownloadView(views::View* view);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 // Whether we are auto-closing. 162 // Whether we are auto-closing.
163 bool auto_closed_; 163 bool auto_closed_;
164 164
165 views::MouseWatcher mouse_watcher_; 165 views::MouseWatcher mouse_watcher_;
166 166
167 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView); 167 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView);
168 }; 168 };
169 169
170 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ 170 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/download/download_shelf_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698