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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 void ExternalTabContainer::CloseContents(TabContents* source) { | 179 void ExternalTabContainer::CloseContents(TabContents* source) { |
180 } | 180 } |
181 | 181 |
182 void ExternalTabContainer::MoveContents(TabContents* source, const gfx::Rect& po
s) { | 182 void ExternalTabContainer::MoveContents(TabContents* source, const gfx::Rect& po
s) { |
183 } | 183 } |
184 | 184 |
185 bool ExternalTabContainer::IsPopup(TabContents* source) { | 185 bool ExternalTabContainer::IsPopup(TabContents* source) { |
186 return false; | 186 return false; |
187 } | 187 } |
188 | 188 |
| 189 bool ExternalTabContainer::IsEmbedded(TabContents* source) { |
| 190 return false; |
| 191 } |
| 192 |
189 void ExternalTabContainer::URLStarredChanged(TabContents* source, bool starred)
{ | 193 void ExternalTabContainer::URLStarredChanged(TabContents* source, bool starred)
{ |
190 } | 194 } |
191 | 195 |
192 void ExternalTabContainer::UpdateTargetURL(TabContents* source, | 196 void ExternalTabContainer::UpdateTargetURL(TabContents* source, |
193 const GURL& url) { | 197 const GURL& url) { |
194 if (automation_) { | 198 if (automation_) { |
195 std::wstring url_string = CA2W(url.spec().c_str()); | 199 std::wstring url_string = CA2W(url.spec().c_str()); |
196 automation_->Send( | 200 automation_->Send( |
197 new AutomationMsg_UpdateTargetUrl(0, url_string)); | 201 new AutomationMsg_UpdateTargetUrl(0, url_string)); |
198 } | 202 } |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 if (!::IsWindow(parent_window)) { | 326 if (!::IsWindow(parent_window)) { |
323 return NULL; | 327 return NULL; |
324 } | 328 } |
325 if (!IsExternalTabContainer(parent_window)) { | 329 if (!IsExternalTabContainer(parent_window)) { |
326 return NULL; | 330 return NULL; |
327 } | 331 } |
328 ExternalTabContainer* container = reinterpret_cast<ExternalTabContainer*>( | 332 ExternalTabContainer* container = reinterpret_cast<ExternalTabContainer*>( |
329 GetProp(parent_window, kWindowObjectKey)); | 333 GetProp(parent_window, kWindowObjectKey)); |
330 return container; | 334 return container; |
331 } | 335 } |
OLD | NEW |