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

Unified Diff: chrome/browser/autofill/autofill_external_delegate_gtk.h

Issue 10828259: Move AutofillExternalDelegateGtk to chrome/browser/ui/gtk/autofill, where it belongs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 4 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/browser/autofill/DEPS ('k') | chrome/browser/autofill/autofill_external_delegate_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_external_delegate_gtk.h
diff --git a/chrome/browser/autofill/autofill_external_delegate_gtk.h b/chrome/browser/autofill/autofill_external_delegate_gtk.h
deleted file mode 100644
index 3043f9dd0e01dd483a87bae1b4c27a7bf93bb62a..0000000000000000000000000000000000000000
--- a/chrome/browser/autofill/autofill_external_delegate_gtk.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_GTK_H_
-#define CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_GTK_H_
-
-#include <gtk/gtk.h>
-
-#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/autofill/autofill_external_delegate.h"
-#include "ui/base/gtk/gtk_signal.h"
-#include "ui/gfx/native_widget_types.h"
-
-class AutofillPopupViewGtk;
-
-namespace content {
-class WebContents;
-}
-
-class AutofillExternalDelegateGtk : public AutofillExternalDelegate {
- public:
- AutofillExternalDelegateGtk(TabContents* tab_contents,
- AutofillManager* autofill_manager);
-
- virtual ~AutofillExternalDelegateGtk();
-
- protected:
- // AutofillExternalDelegate implementations.
- virtual void HideAutofillPopupInternal() OVERRIDE;
- virtual void OnQueryPlatformSpecific(
- int query_id,
- const webkit::forms::FormData& form,
- const webkit::forms::FormField& field,
- const gfx::Rect& bounds) OVERRIDE;
- virtual void ApplyAutofillSuggestions(
- const std::vector<string16>& autofill_values,
- const std::vector<string16>& autofill_labels,
- const std::vector<string16>& autofill_icons,
- const std::vector<int>& autofill_unique_ids) OVERRIDE;
- virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
-
- private:
- // Create a valid view to display the autofill results if one doesn't
- // currently exist.
- void CreateViewIfNeeded();
-
- CHROMEGTK_CALLBACK_1(AutofillExternalDelegateGtk, gboolean,
- HandleViewFocusOut, GdkEventFocus*);
-
- scoped_ptr<AutofillPopupViewGtk> view_;
-
- content::WebContents* web_contents_; // Weak reference.
- gfx::NativeView tab_native_view_; // Weak reference.
-
- // The handler value for the focus out event, allows us to block and unblock
- // it as needed.
- gulong event_handler_id_;
-
- DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegateGtk);
-};
-
-#endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_GTK_H_
« no previous file with comments | « chrome/browser/autofill/DEPS ('k') | chrome/browser/autofill/autofill_external_delegate_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698