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

Unified Diff: chrome/browser/browser.cc

Issue 3174030: Making window.focus()/blur() work only when there is a user gesture. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: 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/chromeos/login/eula_view.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 f8c91744a093eaaba42020ba034d81ba99c1e0b7..e4a5f8cb6b8ef390a97cfa60b3ba4e9753641ef5 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -2659,6 +2659,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();
@@ -2802,14 +2806,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/chromeos/login/eula_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698