| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h" | 8 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h" |
| 9 #include "ui/views/bubble/bubble_delegate.h" | 9 #include "ui/views/bubble/bubble_delegate.h" |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 static void ActivateBubble(); | 36 static void ActivateBubble(); |
| 37 | 37 |
| 38 // Whether the bubble is currently showing. | 38 // Whether the bubble is currently showing. |
| 39 static bool IsShowing(); | 39 static bool IsShowing(); |
| 40 | 40 |
| 41 // Returns a pointer to the bubble. | 41 // Returns a pointer to the bubble. |
| 42 static const ManagePasswordsBubbleView* manage_password_bubble() { | 42 static const ManagePasswordsBubbleView* manage_password_bubble() { |
| 43 return manage_passwords_bubble_; | 43 return manage_passwords_bubble_; |
| 44 } | 44 } |
| 45 | 45 |
| 46 content::WebContents* web_contents() const; |
| 47 |
| 46 const View* initially_focused_view() const { | 48 const View* initially_focused_view() const { |
| 47 return initially_focused_view_; | 49 return initially_focused_view_; |
| 48 } | 50 } |
| 49 | 51 |
| 50 bool IsFadingAway() const { | 52 bool IsFadingAway() const { |
| 51 return fadeout_observer_; | 53 return fadeout_observer_; |
| 52 } | 54 } |
| 53 | 55 |
| 54 private: | 56 private: |
| 55 class BlacklistedView; | 57 class BlacklistedView; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 scoped_ptr<WebContentMouseHandler> mouse_handler_; | 135 scoped_ptr<WebContentMouseHandler> mouse_handler_; |
| 134 | 136 |
| 135 // A helper to get a notification when the bubble fades out completely. | 137 // A helper to get a notification when the bubble fades out completely. |
| 136 class FadeOutObserver; | 138 class FadeOutObserver; |
| 137 scoped_ptr<FadeOutObserver> fadeout_observer_; | 139 scoped_ptr<FadeOutObserver> fadeout_observer_; |
| 138 | 140 |
| 139 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView); | 141 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView); |
| 140 }; | 142 }; |
| 141 | 143 |
| 142 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ | 144 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ |
| OLD | NEW |