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

Unified Diff: content/browser/tab_contents/tab_contents_view_wrapper_gtk.h

Issue 9586009: Move TabContentsViewGtk's delegate to content\public\browser. Also name it a delegate instead of a … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 | « content/browser/tab_contents/tab_contents_view_gtk.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/tab_contents_view_wrapper_gtk.h
===================================================================
--- content/browser/tab_contents/tab_contents_view_wrapper_gtk.h (revision 124607)
+++ content/browser/tab_contents/tab_contents_view_wrapper_gtk.h (working copy)
@@ -1,57 +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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_WRAPPER_GTK_H_
-#define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_WRAPPER_GTK_H_
-#pragma once
-
-#include <gtk/gtk.h>
-
-#include "content/common/content_export.h"
-#include "ui/gfx/native_widget_types.h"
-
-
-namespace content {
-
-class TabContentsViewGtk;
-struct ContextMenuParams;
-
-// An object that supplies the Gtk parent of TabContentsViewGtk. Embedders may
-// want to insert widgets that provide features that live with the
-// TabContentsViewGtk.
-class CONTENT_EXPORT TabContentsViewWrapperGtk {
- public:
- // Initializes the TabContentsViewGtkWrapper by taking |view| and adding it
- // this object's GtkContainer.
- virtual void WrapView(TabContentsViewGtk* view) = 0;
-
- // Returns the top widget that contains |view| passed in from WrapView. This
- // is exposed through TabContentsViewGtk::GetNativeView() when a wrapper is
- // supplied to a TabContentsViewGtk.
- virtual gfx::NativeView GetNativeView() const = 0;
-
- // Called during the TabContentsViewGtk. Used to associate drag handlers.
- virtual void OnCreateViewForWidget() = 0;
-
- // Handles a focus event from the renderer process.
- virtual void Focus() = 0;
-
- // Gives TabContentsViewGtkWrapper a first chance at focus events from our
- // render widget host, before the main view invokes its default
- // behaviour. Returns TRUE if |return_value| has been set and that value
- // should be returned to GTK+.
- virtual gboolean OnNativeViewFocusEvent(GtkWidget* widget,
- GtkDirectionType type,
- gboolean* return_value) = 0;
-
- // Complete hack because I have no idea where else to put this platform
- // specific crud.
- virtual void ShowContextMenu(const content::ContextMenuParams& params) = 0;
-
- virtual ~TabContentsViewWrapperGtk() {}
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_WRAPPER_GTK_H_
« no previous file with comments | « content/browser/tab_contents/tab_contents_view_gtk.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698