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

Side by Side Diff: chrome/browser/external_tab_container_win.cc

Issue 8493011: Merge 108537 - Align avatar bubble with edge of anchor control (Closed) Base URL: svn://svn.chromium.org/chrome/branches/912/src/
Patch Set: Created 9 years, 1 month 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) 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/caps_lock_menu_button.cc ('k') | chrome/browser/resources/ntp4/new_tab.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698