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

Unified Diff: chrome/browser/browser.cc

Issue 3156016: Making window.focus()/blur() work only when user initiated (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Fix Linux compile Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser.h ('k') | chrome/browser/debugger/devtools_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser.cc
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 9d980761e46acf678a401abc8de6f00327c670f1..9b80a07f065685c7fe482335980d685a1f334e9c 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -2635,6 +2635,10 @@ void Browser::ActivateContents(TabContents* contents) {
window_->Activate();
}
+void Browser::DeactivateContents(TabContents* contents) {
+ window_->Deactivate();
+}
+
void Browser::LoadingStateChanged(TabContents* source) {
window_->UpdateLoadingAnimations(tabstrip_model_.TabsAreLoading());
window_->UpdateTitleBar();
@@ -2778,14 +2782,6 @@ bool Browser::TakeFocus(bool reverse) {
return false;
}
-void Browser::Activate() {
- window_->Activate();
-}
-
-void Browser::Deactivate() {
- window_->Deactivate();
-}
-
bool Browser::IsApplication() const {
return (type_ & TYPE_APP) != 0;
}
« no previous file with comments | « chrome/browser/browser.h ('k') | chrome/browser/debugger/devtools_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698