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

Unified Diff: views/focus/widget_focus_manager.cc

Issue 8588064: views: Move bubble, events, focus and layout to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « views/focus/widget_focus_manager.h ('k') | views/layout/box_layout.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/focus/widget_focus_manager.cc
diff --git a/views/focus/widget_focus_manager.cc b/views/focus/widget_focus_manager.cc
deleted file mode 100644
index 57cd2cd34b474a17fb8b268fc7d10e9e595b7ba0..0000000000000000000000000000000000000000
--- a/views/focus/widget_focus_manager.cc
+++ /dev/null
@@ -1,50 +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.
-
-#include "views/focus/widget_focus_manager.h"
-
-#include "base/memory/singleton.h"
-
-namespace views {
-
-// WidgetFocusManager ----------------------------------------------------------
-
-// static
-WidgetFocusManager* WidgetFocusManager::GetInstance() {
- return Singleton<WidgetFocusManager>::get();
-}
-
-void WidgetFocusManager::AddFocusChangeListener(
- WidgetFocusChangeListener* listener) {
- focus_change_listeners_.AddObserver(listener);
-}
-
-void WidgetFocusManager::RemoveFocusChangeListener(
- WidgetFocusChangeListener* listener) {
- focus_change_listeners_.RemoveObserver(listener);
-}
-
-void WidgetFocusManager::OnWidgetFocusEvent(gfx::NativeView focused_before,
- gfx::NativeView focused_now) {
- if (enabled_) {
- FOR_EACH_OBSERVER(WidgetFocusChangeListener, focus_change_listeners_,
- OnNativeFocusChange(focused_before, focused_now));
- }
-}
-
-WidgetFocusManager::WidgetFocusManager() : enabled_(true) {}
-
-WidgetFocusManager::~WidgetFocusManager() {}
-
-// AutoNativeNotificationDisabler ----------------------------------------------
-
-AutoNativeNotificationDisabler::AutoNativeNotificationDisabler() {
- WidgetFocusManager::GetInstance()->DisableNotifications();
-}
-
-AutoNativeNotificationDisabler::~AutoNativeNotificationDisabler() {
- WidgetFocusManager::GetInstance()->EnableNotifications();
-}
-
-} // namespace views
« no previous file with comments | « views/focus/widget_focus_manager.h ('k') | views/layout/box_layout.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698