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

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

Issue 104493005: Update some uses of Value in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 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 | Annotate | Revision Log
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/extensions/window_controller.h" 5 #include "chrome/browser/extensions/window_controller.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" 8 #include "chrome/browser/extensions/api/tabs/tabs_constants.h"
9 #include "chrome/browser/extensions/window_controller_list.h" 9 #include "chrome/browser/extensions/window_controller_list.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 12 matching lines...) Expand all
23 WindowController::~WindowController() { 23 WindowController::~WindowController() {
24 } 24 }
25 25
26 Browser* WindowController::GetBrowser() const { 26 Browser* WindowController::GetBrowser() const {
27 return NULL; 27 return NULL;
28 } 28 }
29 29
30 namespace keys = tabs_constants; 30 namespace keys = tabs_constants;
31 31
32 base::DictionaryValue* WindowController::CreateWindowValue() const { 32 base::DictionaryValue* WindowController::CreateWindowValue() const {
33 DictionaryValue* result = new DictionaryValue(); 33 base::DictionaryValue* result = new base::DictionaryValue();
34 34
35 result->SetInteger(keys::kIdKey, GetWindowId()); 35 result->SetInteger(keys::kIdKey, GetWindowId());
36 result->SetString(keys::kWindowTypeKey, GetWindowTypeText()); 36 result->SetString(keys::kWindowTypeKey, GetWindowTypeText());
37 result->SetBoolean(keys::kFocusedKey, window()->IsActive()); 37 result->SetBoolean(keys::kFocusedKey, window()->IsActive());
38 result->SetBoolean(keys::kIncognitoKey, profile_->IsOffTheRecord()); 38 result->SetBoolean(keys::kIncognitoKey, profile_->IsOffTheRecord());
39 result->SetBoolean(keys::kAlwaysOnTopKey, window()->IsAlwaysOnTop()); 39 result->SetBoolean(keys::kAlwaysOnTopKey, window()->IsAlwaysOnTop());
40 40
41 std::string window_state; 41 std::string window_state;
42 if (window()->IsMinimized()) { 42 if (window()->IsMinimized()) {
43 window_state = keys::kShowStateValueMinimized; 43 window_state = keys::kShowStateValueMinimized;
(...skipping 13 matching lines...) Expand all
57 bounds = window()->GetBounds(); 57 bounds = window()->GetBounds();
58 result->SetInteger(keys::kLeftKey, bounds.x()); 58 result->SetInteger(keys::kLeftKey, bounds.x());
59 result->SetInteger(keys::kTopKey, bounds.y()); 59 result->SetInteger(keys::kTopKey, bounds.y());
60 result->SetInteger(keys::kWidthKey, bounds.width()); 60 result->SetInteger(keys::kWidthKey, bounds.width());
61 result->SetInteger(keys::kHeightKey, bounds.height()); 61 result->SetInteger(keys::kHeightKey, bounds.height());
62 62
63 return result; 63 return result;
64 } 64 }
65 65
66 } // namespace extensions 66 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698