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

Unified Diff: chrome/browser/views/tab_contents/tab_contents_container.h

Issue 122002: Moving the WM_SETFOCUS message processing out of FocusManager (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/views/tab_contents/tab_contents_container.h
===================================================================
--- chrome/browser/views/tab_contents/tab_contents_container.h (revision 18286)
+++ chrome/browser/views/tab_contents/tab_contents_container.h (working copy)
@@ -5,9 +5,7 @@
#ifndef CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_H_
#define CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_H_
-#ifdef UNIT_TEST
#include "chrome/browser/views/tab_contents/native_tab_contents_container.h"
-#endif
#include "chrome/common/notification_registrar.h"
#include "views/view.h"
@@ -24,12 +22,13 @@
// Changes the TabContents associated with this view.
void ChangeTabContents(TabContents* contents);
+ View* GetFocusView() { return native_container_->GetView(); }
+
// Accessor for |tab_contents_|.
TabContents* tab_contents() const { return tab_contents_; }
-#ifdef UNIT_TEST
- View* GetFocusView() { return native_container_->GetView(); }
-#endif
+ // Called by the BrowserView to notify that |tab_contents| got the focus.
+ void TabContentsFocused(TabContents* tab_contents);
// Tells the container to update less frequently during resizing operations
// so performance is better.
@@ -42,8 +41,8 @@
// Overridden from views::View:
virtual void Layout();
- protected:
+ protected:
// Overridden from views::View:
virtual void ViewHierarchyChanged(bool is_add, views::View* parent,
views::View* child);

Powered by Google App Engine
This is Rietveld 408576698