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

Unified Diff: chrome/browser/ui/cocoa/focus_tracker.h

Issue 9309042: Move FocusTracker to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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
Index: chrome/browser/ui/cocoa/focus_tracker.h
diff --git a/chrome/browser/ui/cocoa/focus_tracker.h b/chrome/browser/ui/cocoa/focus_tracker.h
deleted file mode 100644
index e7f9e65a218014975bdba6acaf93698c6c264081..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/focus_tracker.h
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) 2011 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.
-
-#import <Cocoa/Cocoa.h>
-
-#include "base/memory/scoped_nsobject.h"
-
-// A class that handles saving and restoring focus. An instance of
-// this class snapshots the currently focused view when it is
-// constructed, and callers can use restoreFocus to return focus to
-// that view. FocusTracker will not restore focus to views that are
-// no longer in the view hierarchy or are not in the correct window.
-
-@interface FocusTracker : NSObject {
- @private
- scoped_nsobject<NSView> focusedView_;
-}
-
-// |window| is the window that we are saving focus for. This
-// method snapshots the currently focused view.
-- (id)initWithWindow:(NSWindow*)window;
-
-// Attempts to restore focus to the snapshotted view. Returns YES if
-// focus was restored. Will not restore focus if the view is no
-// longer in the view hierarchy under |window|.
-- (BOOL)restoreFocusInWindow:(NSWindow*)window;
-@end
« no previous file with comments | « chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm ('k') | chrome/browser/ui/cocoa/focus_tracker.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698