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

Side by Side Diff: chrome/browser/extensions/extension_accessibility_api.cc

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 years, 4 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) 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 "chrome/browser/extensions/extension_tabs_module.h" 5 #include "chrome/browser/extensions/extension_tabs_module.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // Get the serialized dict from the last focused control and return it. 202 // Get the serialized dict from the last focused control and return it.
203 // However, if the dict is empty, that means we haven't seen any focus 203 // However, if the dict is empty, that means we haven't seen any focus
204 // events yet, so return null instead. 204 // events yet, so return null instead.
205 ExtensionAccessibilityEventRouter *accessibility_event_router = 205 ExtensionAccessibilityEventRouter *accessibility_event_router =
206 ExtensionAccessibilityEventRouter::GetInstance(); 206 ExtensionAccessibilityEventRouter::GetInstance();
207 DictionaryValue *last_focused_control_dict = 207 DictionaryValue *last_focused_control_dict =
208 accessibility_event_router->last_focused_control_dict(); 208 accessibility_event_router->last_focused_control_dict();
209 if (last_focused_control_dict->size()) { 209 if (last_focused_control_dict->size()) {
210 result_.reset(last_focused_control_dict->DeepCopyWithoutEmptyChildren()); 210 result_.reset(last_focused_control_dict->DeepCopyWithoutEmptyChildren());
211 } else { 211 } else {
212 result_.reset(Value::CreateNullValue()); 212 result_.reset(base::NullValue());
213 } 213 }
214 return true; 214 return true;
215 } 215 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/convert_web_app.cc ('k') | chrome/browser/extensions/extension_bookmark_manager_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698