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

Side by Side Diff: views/controls/tabbed_pane/tabbed_pane.cc

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real 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 "views/controls/tabbed_pane/tabbed_pane.h" 5 #include "views/controls/tabbed_pane/tabbed_pane.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/base/accessibility/accessible_view_state.h" 8 #include "ui/base/accessibility/accessible_view_state.h"
9 #include "ui/base/keycodes/keyboard_codes.h" 9 #include "ui/base/keycodes/keyboard_codes.h"
10 #include "ui/views/widget/widget.h"
10 #include "views/controls/native/native_view_host.h" 11 #include "views/controls/native/native_view_host.h"
11 #include "views/controls/tabbed_pane/native_tabbed_pane_wrapper.h" 12 #include "views/controls/tabbed_pane/native_tabbed_pane_wrapper.h"
12 #include "views/controls/tabbed_pane/tabbed_pane_listener.h" 13 #include "views/controls/tabbed_pane/tabbed_pane_listener.h"
13 #include "views/widget/widget.h"
14 14
15 namespace views { 15 namespace views {
16 16
17 // static 17 // static
18 const char TabbedPane::kViewClassName[] = "views/TabbedPane"; 18 const char TabbedPane::kViewClassName[] = "views/TabbedPane";
19 19
20 TabbedPane::TabbedPane() : native_tabbed_pane_(NULL), listener_(NULL) { 20 TabbedPane::TabbedPane() : native_tabbed_pane_(NULL), listener_(NULL) {
21 set_focusable(true); 21 set_focusable(true);
22 } 22 }
23 23
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 if (NativeViewHost::kRenderNativeControlFocus) 133 if (NativeViewHost::kRenderNativeControlFocus)
134 View::OnPaintFocusBorder(canvas); 134 View::OnPaintFocusBorder(canvas);
135 } 135 }
136 136
137 void TabbedPane::GetAccessibleState(ui::AccessibleViewState* state) { 137 void TabbedPane::GetAccessibleState(ui::AccessibleViewState* state) {
138 state->role = ui::AccessibilityTypes::ROLE_PAGETABLIST; 138 state->role = ui::AccessibilityTypes::ROLE_PAGETABLIST;
139 state->name = accessible_name_; 139 state->name = accessible_name_;
140 } 140 }
141 141
142 } // namespace views 142 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/tabbed_pane/native_tabbed_pane_win.cc ('k') | views/controls/tabbed_pane/tabbed_pane_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698