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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_delegate.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/tab_contents/tab_contents_delegate.h" 5 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
6 6
7 #include "gfx/rect.h" 7 #include "gfx/rect.h"
8 8
9 void TabContentsDelegate::DetachContents(TabContents* source) { 9 void TabContentsDelegate::DetachContents(TabContents* source) {
10 } 10 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 TabContentsDelegate::CreateExtensionFunctionDispatcher( 63 TabContentsDelegate::CreateExtensionFunctionDispatcher(
64 RenderViewHost* render_view_host, 64 RenderViewHost* render_view_host,
65 const std::string& extension_id) { 65 const std::string& extension_id) {
66 return NULL; 66 return NULL;
67 } 67 }
68 68
69 bool TabContentsDelegate::TakeFocus(bool reverse) { 69 bool TabContentsDelegate::TakeFocus(bool reverse) {
70 return false; 70 return false;
71 } 71 }
72 72
73 void TabContentsDelegate::Activate() {
74 }
75
76 void TabContentsDelegate::Deactivate(){
77 }
78
79 void TabContentsDelegate::SetTabContentBlocked( 73 void TabContentsDelegate::SetTabContentBlocked(
80 TabContents* contents, bool blocked) { 74 TabContents* contents, bool blocked) {
81 } 75 }
82 76
83 void TabContentsDelegate::TabContentsFocused(TabContents* tab_content) { 77 void TabContentsDelegate::TabContentsFocused(TabContents* tab_content) {
84 } 78 }
85 79
86 int TabContentsDelegate::GetExtraRenderViewHeight() const { 80 int TabContentsDelegate::GetExtraRenderViewHeight() const {
87 return 0; 81 return 0;
88 } 82 }
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 } 161 }
168 162
169 void TabContentsDelegate::ContentTypeChanged(TabContents* source) { 163 void TabContentsDelegate::ContentTypeChanged(TabContents* source) {
170 } 164 }
171 165
172 void TabContentsDelegate::CommitMatchPreview(TabContents* source) { 166 void TabContentsDelegate::CommitMatchPreview(TabContents* source) {
173 } 167 }
174 168
175 TabContentsDelegate::~TabContentsDelegate() { 169 TabContentsDelegate::~TabContentsDelegate() {
176 } 170 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_delegate.h ('k') | chrome/browser/tab_contents/tab_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698