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

Unified Diff: content/common/window_container_type.cc

Issue 8346017: Move content_browser_client.h to public, and while at it, move (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed a file post merge. Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/window_container_type.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/window_container_type.cc
diff --git a/content/common/window_container_type.cc b/content/common/window_container_type.cc
deleted file mode 100644
index 20ba687d9471e218afe6178b5967b1120f556cdf..0000000000000000000000000000000000000000
--- a/content/common/window_container_type.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/common/window_container_type.h"
-
-#include "base/string_util.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebWindowFeatures.h"
-
-namespace {
-
-const char kBackground[] = "background";
-const char kPersistent[] = "persistent";
-
-}
-
-WindowContainerType WindowFeaturesToContainerType(
- const WebKit::WebWindowFeatures& window_features) {
- bool background = false;
- bool persistent = false;
-
- for (size_t i = 0; i < window_features.additionalFeatures.size(); ++i) {
- if (LowerCaseEqualsASCII(window_features.additionalFeatures[i],
- kBackground))
- background = true;
- else if (LowerCaseEqualsASCII(window_features.additionalFeatures[i],
- kPersistent))
- persistent = true;
- }
-
- if (background) {
- if (persistent)
- return WINDOW_CONTAINER_TYPE_PERSISTENT;
- else
- return WINDOW_CONTAINER_TYPE_BACKGROUND;
- } else {
- return WINDOW_CONTAINER_TYPE_NORMAL;
- }
-}
« no previous file with comments | « content/common/window_container_type.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698