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

Side by Side Diff: chrome/browser/dom_ui/html_dialog_tab_contents_delegate.cc

Issue 3201008: Revert 57094 - Making window.focus()/blur() work only when there is a user ge... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "chrome/browser/dom_ui/html_dialog_tab_contents_delegate.h" 5 #include "chrome/browser/dom_ui/html_dialog_tab_contents_delegate.h"
6 6
7 #include "chrome/browser/browser.h" 7 #include "chrome/browser/browser.h"
8 #include "chrome/browser/browser_window.h" 8 #include "chrome/browser/browser_window.h"
9 #include "chrome/browser/profile.h" 9 #include "chrome/browser/profile.h"
10 #include "chrome/browser/tab_contents/tab_contents.h" 10 #include "chrome/browser/tab_contents/tab_contents.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 initial_pos, user_gesture); 69 initial_pos, user_gesture);
70 browser->window()->Show(); 70 browser->window()->Show();
71 } 71 }
72 } 72 }
73 73
74 void HtmlDialogTabContentsDelegate::ActivateContents(TabContents* contents) { 74 void HtmlDialogTabContentsDelegate::ActivateContents(TabContents* contents) {
75 // We don't do anything here because there's only one TabContents in 75 // We don't do anything here because there's only one TabContents in
76 // this frame and we don't have a TabStripModel. 76 // this frame and we don't have a TabStripModel.
77 } 77 }
78 78
79 void HtmlDialogTabContentsDelegate::DeactivateContents(TabContents* contents) {
80 // We don't care about this notification (called when a user gesture triggers
81 // a call to window.blur()).
82 }
83
84 void HtmlDialogTabContentsDelegate::LoadingStateChanged(TabContents* source) { 79 void HtmlDialogTabContentsDelegate::LoadingStateChanged(TabContents* source) {
85 // We don't care about this notification. 80 // We don't care about this notification.
86 } 81 }
87 82
88 void HtmlDialogTabContentsDelegate::CloseContents(TabContents* source) { 83 void HtmlDialogTabContentsDelegate::CloseContents(TabContents* source) {
89 // We receive this message but don't handle it because we really do the 84 // We receive this message but don't handle it because we really do the
90 // cleanup somewhere else (namely, HtmlDialogUIDelegate::OnDialogClosed()). 85 // cleanup somewhere else (namely, HtmlDialogUIDelegate::OnDialogClosed()).
91 } 86 }
92 87
93 bool HtmlDialogTabContentsDelegate::IsPopup(const TabContents* source) const { 88 bool HtmlDialogTabContentsDelegate::IsPopup(const TabContents* source) const {
(...skipping 10 matching lines...) Expand all
104 99
105 void HtmlDialogTabContentsDelegate::UpdateTargetURL(TabContents* source, 100 void HtmlDialogTabContentsDelegate::UpdateTargetURL(TabContents* source,
106 const GURL& url) { 101 const GURL& url) {
107 // Ignored. 102 // Ignored.
108 } 103 }
109 104
110 bool HtmlDialogTabContentsDelegate::ShouldAddNavigationToHistory() const { 105 bool HtmlDialogTabContentsDelegate::ShouldAddNavigationToHistory() const {
111 return false; 106 return false;
112 } 107 }
113 108
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/html_dialog_tab_contents_delegate.h ('k') | chrome/browser/external_tab_container_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698