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

Unified Diff: ui/base/cocoa/tracking_area.h

Issue 12763002: Move CrTrackingArea from chrome/browser/ui/cocoa to ui/base/cocoa. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test in namespace Created 7 years, 9 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 | « chrome/chrome_tests_unit.gypi ('k') | ui/base/cocoa/tracking_area.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cocoa/tracking_area.h
diff --git a/chrome/browser/ui/cocoa/tracking_area.h b/ui/base/cocoa/tracking_area.h
similarity index 88%
rename from chrome/browser/ui/cocoa/tracking_area.h
rename to ui/base/cocoa/tracking_area.h
index a1036ea13e42bab079c7e648913dd5b1b525360a..fa49a37041053e8253fbb6822337e3d2415408a6 100644
--- a/chrome/browser/ui/cocoa/tracking_area.h
+++ b/ui/base/cocoa/tracking_area.h
@@ -2,12 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_COCOA_TRACKING_AREA_H_
-#define CHROME_BROWSER_UI_COCOA_TRACKING_AREA_H_
+#ifndef UI_BASE_COCOA_TRACKING_AREA_H_
+#define UI_BASE_COCOA_TRACKING_AREA_H_
#import <AppKit/AppKit.h>
#include "base/memory/scoped_nsobject.h"
+#include "ui/base/ui_export.h"
@class CrTrackingAreaOwnerProxy;
@@ -36,9 +37,11 @@
// Scoper //////////////////////////////////////////////////////////////////////
+namespace ui {
+
// Use an instance of this class to call |-clearOwner| on the |tracking_area_|
// when this goes out of scope.
-class ScopedCrTrackingArea {
+class UI_EXPORT ScopedCrTrackingArea {
public:
// Takes ownership of |tracking_area| without retaining it.
explicit ScopedCrTrackingArea(CrTrackingArea* tracking_area = nil);
@@ -56,4 +59,6 @@ class ScopedCrTrackingArea {
DISALLOW_COPY_AND_ASSIGN(ScopedCrTrackingArea);
};
-#endif // CHROME_BROWSER_UI_COCOA_TRACKING_AREA_H_
+} // namespace ui
+
+#endif // UI_BASE_COCOA_TRACKING_AREA_H_
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | ui/base/cocoa/tracking_area.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698