summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/focus_store_gtk.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-15 22:02:03 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-15 22:02:03 +0000
commitf363a3a828686f6aad65501abe7b33b0d4d13d32 (patch)
treeb92aca8f1c5d5cced5863ae258a7c0f12ee55f7b /chrome/browser/gtk/focus_store_gtk.cc
parentbac9380a21c9defa0be9bda684af66d4492b9f0b (diff)
downloadchromium_src-f363a3a828686f6aad65501abe7b33b0d4d13d32.zip
chromium_src-f363a3a828686f6aad65501abe7b33b0d4d13d32.tar.gz
chromium_src-f363a3a828686f6aad65501abe7b33b0d4d13d32.tar.bz2
These files got added twice. But how??
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16195 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/focus_store_gtk.cc')
-rw-r--r--chrome/browser/gtk/focus_store_gtk.cc46
1 files changed, 0 insertions, 46 deletions
diff --git a/chrome/browser/gtk/focus_store_gtk.cc b/chrome/browser/gtk/focus_store_gtk.cc
index 82b740f..7a802b1 100644
--- a/chrome/browser/gtk/focus_store_gtk.cc
+++ b/chrome/browser/gtk/focus_store_gtk.cc
@@ -44,49 +44,3 @@ void FocusStoreGtk::DisconnectDestroyHandler() {
if (widget_)
g_signal_handler_disconnect(widget_, destroy_handler_id_);
}
-// 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.
-
-#include "chrome/browser/gtk/focus_store_gtk.h"
-
-#include <gtk/gtk.h>
-
-#include "base/logging.h"
-#include "chrome/common/platform_util.h"
-
-FocusStoreGtk::FocusStoreGtk() : widget_(NULL) {
-}
-
-FocusStoreGtk::~FocusStoreGtk() {
- DisconnectDestroyHandler();
-}
-
-void FocusStoreGtk::Store(GtkWidget* widget) {
- if (!widget) {
- DisconnectDestroyHandler();
- widget_ = NULL;
- return;
- }
-
- GtkWindow* window = platform_util::GetTopLevel(widget);
- if (!window) {
- NOTREACHED();
- return;
- }
-
- DisconnectDestroyHandler();
-
- widget_ = window->focus_widget;
- if (widget_) {
- // When invoked, |gtk_widget_destroyed| will set |widget_| to NULL.
- destroy_handler_id_ = g_signal_connect(widget_, "destroy",
- G_CALLBACK(gtk_widget_destroyed),
- &widget_);
- }
-}
-
-void FocusStoreGtk::DisconnectDestroyHandler() {
- if (widget_)
- g_signal_handler_disconnect(widget_, destroy_handler_id_);
-}