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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_strip.cc

Issue 393033006: Added tab notification to accessibility_event_router_views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tab index -1 isn't read Created 6 years, 5 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
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.h ('k') | chrome/browser/ui/views/tabs/tab_unittest.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/views/tabs/tab_strip.h" 5 #include "chrome/browser/ui/views/tabs/tab_strip.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windowsx.h> 8 #include <windowsx.h>
9 #endif 9 #endif
10 10
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 clip->SetRect(x, 0, tab_bounds.width() - x, tab_bounds.height()); 1179 clip->SetRect(x, 0, tab_bounds.width() - x, tab_bounds.height());
1180 } 1180 }
1181 } 1181 }
1182 return true; 1182 return true;
1183 } 1183 }
1184 1184
1185 bool TabStrip::IsImmersiveStyle() const { 1185 bool TabStrip::IsImmersiveStyle() const {
1186 return immersive_style_; 1186 return immersive_style_;
1187 } 1187 }
1188 1188
1189 void TabStrip::UpdateTabAccessibilityState(const Tab* tab,
1190 ui::AXViewState* state) {
1191 state->count = tab_count();
1192 state->index = GetModelIndexOfTab(tab);
1193 }
1194
1189 void TabStrip::MouseMovedOutOfHost() { 1195 void TabStrip::MouseMovedOutOfHost() {
1190 ResizeLayoutTabs(); 1196 ResizeLayoutTabs();
1191 if (reset_to_shrink_on_exit_) { 1197 if (reset_to_shrink_on_exit_) {
1192 reset_to_shrink_on_exit_ = false; 1198 reset_to_shrink_on_exit_ = false;
1193 SetStackedLayout(false); 1199 SetStackedLayout(false);
1194 controller_->StackedLayoutMaybeChanged(); 1200 controller_->StackedLayoutMaybeChanged();
1195 } 1201 }
1196 } 1202 }
1197 1203
1198 /////////////////////////////////////////////////////////////////////////////// 1204 ///////////////////////////////////////////////////////////////////////////////
(...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after
2718 ConvertPointToViewAndGetEventHandler(this, newtab_button_, point); 2724 ConvertPointToViewAndGetEventHandler(this, newtab_button_, point);
2719 if (view) 2725 if (view)
2720 return view; 2726 return view;
2721 } 2727 }
2722 Tab* tab = FindTabForEvent(point); 2728 Tab* tab = FindTabForEvent(point);
2723 if (tab) 2729 if (tab)
2724 return ConvertPointToViewAndGetEventHandler(this, tab, point); 2730 return ConvertPointToViewAndGetEventHandler(this, tab, point);
2725 } 2731 }
2726 return this; 2732 return this;
2727 } 2733 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.h ('k') | chrome/browser/ui/views/tabs/tab_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698