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

Side by Side Diff: chrome/browser/views/tab_contents_container_view.cc

Issue 5005: Reorganize the declarations to have some grouping and logical ordering in tab... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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
OLDNEW
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 <algorithm> 5 #include <algorithm>
6 6
7 #include "chrome/browser/views/tab_contents_container_view.h" 7 #include "chrome/browser/views/tab_contents_container_view.h"
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/browser/render_view_host.h" 10 #include "chrome/browser/render_view_host.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 bool TabContentsContainerView::GetAccessibleRole(VARIANT* role) { 163 bool TabContentsContainerView::GetAccessibleRole(VARIANT* role) {
164 DCHECK(role); 164 DCHECK(role);
165 165
166 role->vt = VT_I4; 166 role->vt = VT_I4;
167 role->lVal = ROLE_SYSTEM_GROUPING; 167 role->lVal = ROLE_SYSTEM_GROUPING;
168 return true; 168 return true;
169 } 169 }
170 170
171 bool TabContentsContainerView::ShouldLookupAccelerators( 171 bool TabContentsContainerView::ShouldLookupAccelerators(
172 const ChromeViews::KeyEvent& e) { 172 const ChromeViews::KeyEvent& e) {
173 if (tab_contents_ && !tab_contents_->IsCrashed() && 173 if (tab_contents_ && !tab_contents_->is_crashed() &&
174 tab_contents_->AsWebContents()) 174 tab_contents_->AsWebContents())
175 return false; 175 return false;
176 return true; 176 return true;
177 } 177 }
178 178
179 void TabContentsContainerView::Observe(NotificationType type, 179 void TabContentsContainerView::Observe(NotificationType type,
180 const NotificationSource& source, 180 const NotificationSource& source,
181 const NotificationDetails& details) { 181 const NotificationDetails& details) {
182 if (type == NOTIFY_RENDER_VIEW_HOST_CHANGED) { 182 if (type == NOTIFY_RENDER_VIEW_HOST_CHANGED) {
183 RenderViewHostSwitchedDetails* switched_details = 183 RenderViewHostSwitchedDetails* switched_details =
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 Focus(); 234 Focus();
235 } 235 }
236 236
237 void TabContentsContainerView::TabContentsDestroyed(TabContents* contents) { 237 void TabContentsContainerView::TabContentsDestroyed(TabContents* contents) {
238 // Sometimes, a TabContents is destroyed before we know about it. This allows 238 // Sometimes, a TabContents is destroyed before we know about it. This allows
239 // us to clean up our state in case this happens. 239 // us to clean up our state in case this happens.
240 DCHECK(contents == tab_contents_); 240 DCHECK(contents == tab_contents_);
241 SetTabContents(NULL); 241 SetTabContents(NULL);
242 } 242 }
243 243
OLDNEW
« no previous file with comments | « chrome/browser/view_source_contents.cc ('k') | chrome/browser/views/tabs/dragged_tab_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698