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

Unified Diff: chrome/browser/views/infobars/infobars.h

Issue 3421033: Send an EVENT_SYSTEM_ALERT when a user first places focus within an infobar. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/views/infobars/infobars.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/infobars/infobars.h
===================================================================
--- chrome/browser/views/infobars/infobars.h (revision 60349)
+++ chrome/browser/views/infobars/infobars.h (working copy)
@@ -11,6 +11,7 @@
#include "chrome/browser/tab_contents/infobar_delegate.h"
#include "views/controls/button/button.h"
#include "views/controls/link.h"
+#include "views/focus/focus_manager.h"
class InfoBarContainer;
class SlideAnimation;
@@ -41,6 +42,7 @@
class InfoBar : public views::View,
public views::ButtonListener,
+ public views::FocusChangeListener,
public AnimationDelegate {
public:
explicit InfoBar(InfoBarDelegate* delegate);
@@ -99,6 +101,9 @@
// Overridden from views::ButtonListener:
virtual void ButtonPressed(views::Button* sender, const views::Event& event);
+ // Overridden from views::FocusChangeListener:
+ virtual void FocusWillChange(View* focused_before, View* focused_now);
+
// Overridden from AnimationDelegate:
virtual void AnimationProgressed(const Animation* animation);
virtual void AnimationEnded(const Animation* animation);
« no previous file with comments | « no previous file | chrome/browser/views/infobars/infobars.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698