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

Side by Side Diff: chrome/browser/ui/aura/accessibility/ax_root_obj_wrapper.cc

Issue 1050713002: aura: Remove layerless windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layerless: rebase Created 5 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/aura/accessibility/ax_root_obj_wrapper.h" 5 #include "chrome/browser/ui/aura/accessibility/ax_root_obj_wrapper.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "ui/accessibility/ax_node_data.h" 8 #include "ui/accessibility/ax_node_data.h"
9 #include "ui/accessibility/ax_view_state.h" 9 #include "ui/accessibility/ax_view_state.h"
10 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
11 #include "ui/views/accessibility/ax_aura_obj_cache.h" 11 #include "ui/views/accessibility/ax_aura_obj_cache.h"
12 #include "ui/views/accessibility/ax_window_obj_wrapper.h" 12 #include "ui/views/accessibility/ax_window_obj_wrapper.h"
13 13
14 AXRootObjWrapper::AXRootObjWrapper(int32 id) 14 AXRootObjWrapper::AXRootObjWrapper(int32 id)
15 : id_(id), alert_window_(new aura::Window(NULL)) { 15 : id_(id), alert_window_(new aura::Window(NULL)) {
16 alert_window_->Init(ui::LAYER_NOT_DRAWN);
16 } 17 }
17 18
18 AXRootObjWrapper::~AXRootObjWrapper() { 19 AXRootObjWrapper::~AXRootObjWrapper() {
19 if (alert_window_) { 20 if (alert_window_) {
20 delete alert_window_; 21 delete alert_window_;
21 alert_window_ = NULL; 22 alert_window_ = NULL;
22 } 23 }
23 } 24 }
24 25
25 views::AXAuraObjWrapper* AXRootObjWrapper::GetAlertForText( 26 views::AXAuraObjWrapper* AXRootObjWrapper::GetAlertForText(
(...skipping 24 matching lines...) Expand all
50 void AXRootObjWrapper::Serialize(ui::AXNodeData* out_node_data) { 51 void AXRootObjWrapper::Serialize(ui::AXNodeData* out_node_data) {
51 out_node_data->id = id_; 52 out_node_data->id = id_;
52 out_node_data->role = ui::AX_ROLE_DESKTOP; 53 out_node_data->role = ui::AX_ROLE_DESKTOP;
53 // TODO(dtseng): Apply a richer set of states. 54 // TODO(dtseng): Apply a richer set of states.
54 out_node_data->state = 0; 55 out_node_data->state = 0;
55 } 56 }
56 57
57 int32 AXRootObjWrapper::GetID() { 58 int32 AXRootObjWrapper::GetID() {
58 return id_; 59 return id_;
59 } 60 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698