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

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

Issue 6975037: Revert 85666 - Consolidate ShouldUseNativeFrame/AlwaysUseNativeFrame/UseNativeFrame spaghetti. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/external_tab_container_win.h ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 void ExternalTabContainer::InfoBarContainerStateChanged(bool is_animating) { 925 void ExternalTabContainer::InfoBarContainerStateChanged(bool is_animating) {
926 if (external_tab_view_) 926 if (external_tab_view_)
927 external_tab_view_->Layout(); 927 external_tab_view_->Layout();
928 } 928 }
929 929
930 bool ExternalTabContainer::DrawInfoBarArrows(int* x) const { 930 bool ExternalTabContainer::DrawInfoBarArrows(int* x) const {
931 return false; 931 return false;
932 } 932 }
933 933
934 // ExternalTabContainer instances do not have a window. 934 // ExternalTabContainer instances do not have a window.
935 views::Window* ExternalTabContainer::GetContainingWindow() { 935 views::Window* ExternalTabContainer::GetWindow() {
936 return NULL;
937 }
938
939 const views::Window* ExternalTabContainer::GetContainingWindow() const {
940 return NULL; 936 return NULL;
941 } 937 }
942 938
943 bool ExternalTabContainer::AcceleratorPressed( 939 bool ExternalTabContainer::AcceleratorPressed(
944 const views::Accelerator& accelerator) { 940 const views::Accelerator& accelerator) {
945 std::map<views::Accelerator, int>::const_iterator iter = 941 std::map<views::Accelerator, int>::const_iterator iter =
946 accelerator_table_.find(accelerator); 942 accelerator_table_.find(accelerator);
947 DCHECK(iter != accelerator_table_.end()); 943 DCHECK(iter != accelerator_table_.end());
948 944
949 if (!tab_contents_.get() || !tab_contents_->render_view_host()) { 945 if (!tab_contents_.get() || !tab_contents_->render_view_host()) {
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1121 1117
1122 if (disposition == CURRENT_TAB) { 1118 if (disposition == CURRENT_TAB) {
1123 DCHECK(route_all_top_level_navigations_); 1119 DCHECK(route_all_top_level_navigations_);
1124 disposition = NEW_FOREGROUND_TAB; 1120 disposition = NEW_FOREGROUND_TAB;
1125 } 1121 }
1126 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition, 1122 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition,
1127 transition); 1123 transition);
1128 // support only one navigation for a dummy tab before it is killed. 1124 // support only one navigation for a dummy tab before it is killed.
1129 ::DestroyWindow(GetNativeView()); 1125 ::DestroyWindow(GetNativeView());
1130 } 1126 }
OLDNEW
« no previous file with comments | « chrome/browser/external_tab_container_win.h ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698