diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-15 15:49:47 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-15 15:49:47 +0000 |
commit | 2bc8e5fb1e2bd185a9ccfb393be6241187d09225 (patch) | |
tree | f971d963f0c4f6d18cd4063b11e2656ea64c0345 /chrome/browser/cocoa/focus_tracker.h | |
parent | 509b4546650b7552878e70f1b4b4d52f11e066da (diff) | |
download | chromium_src-2bc8e5fb1e2bd185a9ccfb393be6241187d09225.zip chromium_src-2bc8e5fb1e2bd185a9ccfb393be6241187d09225.tar.gz chromium_src-2bc8e5fb1e2bd185a9ccfb393be6241187d09225.tar.bz2 |
Reverting 26214.
Review URL: http://codereview.chromium.org/201116
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26219 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/focus_tracker.h')
-rw-r--r-- | chrome/browser/cocoa/focus_tracker.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/chrome/browser/cocoa/focus_tracker.h b/chrome/browser/cocoa/focus_tracker.h deleted file mode 100644 index f828979..0000000 --- a/chrome/browser/cocoa/focus_tracker.h +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2009 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/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 |