OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/external_tab_container.h" | 5 #include "chrome/browser/external_tab_container.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/win_util.h" | 8 #include "base/win_util.h" |
9 #include "chrome/browser/automation/automation_provider.h" | 9 #include "chrome/browser/automation/automation_provider.h" |
10 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profile.h" |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 } | 204 } |
205 | 205 |
206 void ExternalTabContainer::NavigationStateChanged(const TabContents* source, | 206 void ExternalTabContainer::NavigationStateChanged(const TabContents* source, |
207 unsigned changed_flags) { | 207 unsigned changed_flags) { |
208 if (automation_) { | 208 if (automation_) { |
209 automation_->Send( | 209 automation_->Send( |
210 new AutomationMsg_NavigationStateChanged(0, changed_flags)); | 210 new AutomationMsg_NavigationStateChanged(0, changed_flags)); |
211 } | 211 } |
212 } | 212 } |
213 | 213 |
214 void ExternalTabContainer::ReplaceContents(TabContents* source, TabContents* new
_contents) { | 214 void ExternalTabContainer::ReplaceContents(TabContents* source, |
| 215 TabContents* new_contents) { |
215 } | 216 } |
216 | 217 |
217 void ExternalTabContainer::AddNewContents(TabContents* source, | 218 void ExternalTabContainer::AddNewContents(TabContents* source, |
218 TabContents* new_contents, | 219 TabContents* new_contents, |
219 WindowOpenDisposition disposition, | 220 WindowOpenDisposition disposition, |
220 const gfx::Rect& initial_pos, | 221 const gfx::Rect& initial_pos, |
221 bool user_gesture) { | 222 bool user_gesture) { |
222 } | 223 } |
223 | 224 |
224 void ExternalTabContainer::ActivateContents(TabContents* contents) { | 225 void ExternalTabContainer::ActivateContents(TabContents* contents) { |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 if (!::IsWindow(parent_window)) { | 414 if (!::IsWindow(parent_window)) { |
414 return NULL; | 415 return NULL; |
415 } | 416 } |
416 if (!IsExternalTabContainer(parent_window)) { | 417 if (!IsExternalTabContainer(parent_window)) { |
417 return NULL; | 418 return NULL; |
418 } | 419 } |
419 ExternalTabContainer* container = reinterpret_cast<ExternalTabContainer*>( | 420 ExternalTabContainer* container = reinterpret_cast<ExternalTabContainer*>( |
420 GetProp(parent_window, kWindowObjectKey)); | 421 GetProp(parent_window, kWindowObjectKey)); |
421 return container; | 422 return container; |
422 } | 423 } |
OLD | NEW |