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

Side by Side Diff: ui/views/widget/widget.cc

Issue 2530073002: Add kAccessibilityFocusFallsbackToWidget property (Closed)
Patch Set: Remove unnecessary blank line. Created 4 years 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
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 "ui/views/widget/widget.h" 5 #include "ui/views/widget/widget.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 params.activatable = InitParams::ACTIVATABLE_NO; 324 params.activatable = InitParams::ACTIVATABLE_NO;
325 } 325 }
326 326
327 widget_delegate_ = params.delegate ? 327 widget_delegate_ = params.delegate ?
328 params.delegate : new DefaultWidgetDelegate(this); 328 params.delegate : new DefaultWidgetDelegate(this);
329 widget_delegate_->set_can_activate(can_activate); 329 widget_delegate_->set_can_activate(can_activate);
330 330
331 ownership_ = params.ownership; 331 ownership_ = params.ownership;
332 native_widget_ = CreateNativeWidget(params, this)->AsNativeWidgetPrivate(); 332 native_widget_ = CreateNativeWidget(params, this)->AsNativeWidgetPrivate();
333 root_view_.reset(CreateRootView()); 333 root_view_.reset(CreateRootView());
334 root_view_->SetFocusBehavior(View::FocusBehavior::ACCESSIBLE_ONLY);
sky 2016/11/30 16:26:04 Can you clarify why you want this? The change here
yawano 2016/12/01 00:24:23 Added comment.
334 default_theme_provider_.reset(new ui::DefaultThemeProvider); 335 default_theme_provider_.reset(new ui::DefaultThemeProvider);
335 if (params.type == InitParams::TYPE_MENU) { 336 if (params.type == InitParams::TYPE_MENU) {
336 is_mouse_button_pressed_ = 337 is_mouse_button_pressed_ =
337 internal::NativeWidgetPrivate::IsMouseButtonDown(); 338 internal::NativeWidgetPrivate::IsMouseButtonDown();
338 } 339 }
339 native_widget_->InitNativeWidget(params); 340 native_widget_->InitNativeWidget(params);
340 if (RequiresNonClientView(params.type)) { 341 if (RequiresNonClientView(params.type)) {
341 non_client_view_ = new NonClientView; 342 non_client_view_ = new NonClientView;
342 non_client_view_->SetFrameView(CreateNonClientFrameView()); 343 non_client_view_->SetFrameView(CreateNonClientFrameView());
343 // Create the ClientView, add it to the NonClientView and add the 344 // Create the ClientView, add it to the NonClientView and add the
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 1495
1495 //////////////////////////////////////////////////////////////////////////////// 1496 ////////////////////////////////////////////////////////////////////////////////
1496 // internal::NativeWidgetPrivate, NativeWidget implementation: 1497 // internal::NativeWidgetPrivate, NativeWidget implementation:
1497 1498
1498 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1499 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1499 return this; 1500 return this;
1500 } 1501 }
1501 1502
1502 } // namespace internal 1503 } // namespace internal
1503 } // namespace views 1504 } // namespace views
OLDNEW
« components/exo/shell_surface.cc ('K') | « ui/views/accessibility/ax_aura_obj_cache.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698