| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_win.h" | 5 #include "chrome/browser/external_tab_container_win.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 GetCursorPos(&cursor_pos); | 594 GetCursorPos(&cursor_pos); |
| 595 | 595 |
| 596 gfx::Rect bounds; | 596 gfx::Rect bounds; |
| 597 bounds.set_origin(gfx::Point(cursor_pos)); | 597 bounds.set_origin(gfx::Point(cursor_pos)); |
| 598 | 598 |
| 599 PageInfoBubbleView* page_info_bubble = | 599 PageInfoBubbleView* page_info_bubble = |
| 600 new ExternalTabPageInfoBubbleView(this, NULL, profile, url, | 600 new ExternalTabPageInfoBubbleView(this, NULL, profile, url, |
| 601 ssl, show_history); | 601 ssl, show_history); |
| 602 Bubble* bubble = Bubble::Show(GetWidget(), bounds, | 602 Bubble* bubble = Bubble::Show(GetWidget(), bounds, |
| 603 views::BubbleBorder::TOP_LEFT, | 603 views::BubbleBorder::TOP_LEFT, |
| 604 views::BubbleBorder::ALIGN_ARROW_TO_MID_ANCHOR, |
| 604 page_info_bubble, page_info_bubble); | 605 page_info_bubble, page_info_bubble); |
| 605 page_info_bubble->set_bubble(bubble); | 606 page_info_bubble->set_bubble(bubble); |
| 606 } | 607 } |
| 607 | 608 |
| 608 void ExternalTabContainer::RegisterRenderViewHostForAutomation( | 609 void ExternalTabContainer::RegisterRenderViewHostForAutomation( |
| 609 RenderViewHost* render_view_host, bool pending_view) { | 610 RenderViewHost* render_view_host, bool pending_view) { |
| 610 if (render_view_host) { | 611 if (render_view_host) { |
| 611 AutomationResourceMessageFilter::RegisterRenderView( | 612 AutomationResourceMessageFilter::RegisterRenderView( |
| 612 render_view_host->process()->id(), | 613 render_view_host->process()->id(), |
| 613 render_view_host->routing_id(), | 614 render_view_host->routing_id(), |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1215 if (params.disposition == CURRENT_TAB) { | 1216 if (params.disposition == CURRENT_TAB) { |
| 1216 DCHECK(route_all_top_level_navigations_); | 1217 DCHECK(route_all_top_level_navigations_); |
| 1217 forward_params.disposition = NEW_FOREGROUND_TAB; | 1218 forward_params.disposition = NEW_FOREGROUND_TAB; |
| 1218 } | 1219 } |
| 1219 TabContents* new_contents = | 1220 TabContents* new_contents = |
| 1220 ExternalTabContainer::OpenURLFromTab(source, forward_params); | 1221 ExternalTabContainer::OpenURLFromTab(source, forward_params); |
| 1221 // support only one navigation for a dummy tab before it is killed. | 1222 // support only one navigation for a dummy tab before it is killed. |
| 1222 ::DestroyWindow(GetNativeView()); | 1223 ::DestroyWindow(GetNativeView()); |
| 1223 return new_contents; | 1224 return new_contents; |
| 1224 } | 1225 } |
| OLD | NEW |