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

Unified Diff: content/shell/shell_web_contents_view_delegate.h

Issue 23316003: [content shell] move browser process stuff into browser/ subdir (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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
Index: content/shell/shell_web_contents_view_delegate.h
diff --git a/content/shell/shell_web_contents_view_delegate.h b/content/shell/shell_web_contents_view_delegate.h
deleted file mode 100644
index f9292a8e8d912aec4845ec2782a3448076b4f49d..0000000000000000000000000000000000000000
--- a/content/shell/shell_web_contents_view_delegate.h
+++ /dev/null
@@ -1,83 +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_SHELL_SHELL_WEB_CONTENTS_VIEW_DELEGATE_H_
-#define CONTENT_SHELL_SHELL_WEB_CONTENTS_VIEW_DELEGATE_H_
-
-#include "content/public/browser/web_contents.h"
-#include "content/public/browser/web_contents_view_delegate.h"
-#include "content/public/common/context_menu_params.h"
-
-#if defined(TOOLKIT_GTK)
-#include "ui/base/gtk/gtk_signal.h"
-#include "ui/base/gtk/owned_widget_gtk.h"
-#endif
-
-namespace content {
-
-class ShellWebContentsViewDelegate : public WebContentsViewDelegate {
- public:
- explicit ShellWebContentsViewDelegate(WebContents* web_contents);
- virtual ~ShellWebContentsViewDelegate();
-
- // Overridden from WebContentsViewDelegate:
- virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE;
- virtual WebDragDestDelegate* GetDragDestDelegate() OVERRIDE;
-
-#if defined(TOOLKIT_GTK)
- virtual void Initialize(GtkWidget* expanded_container,
- ui::FocusStoreGtk* focus_store) OVERRIDE;
- virtual gfx::NativeView GetNativeView() const OVERRIDE;
- virtual void Focus() OVERRIDE;
- virtual gboolean OnNativeViewFocusEvent(GtkWidget* widget,
- GtkDirectionType type,
- gboolean* return_value) OVERRIDE;
-#elif defined(OS_MACOSX)
- virtual NSObject<RenderWidgetHostViewMacDelegate>*
- CreateRenderWidgetHostViewDelegate(
- RenderWidgetHost* render_widget_host) OVERRIDE;
- void ActionPerformed(int id);
-#elif defined(OS_WIN)
- virtual void StoreFocus() OVERRIDE;
- virtual void RestoreFocus() OVERRIDE;
- virtual bool Focus() OVERRIDE;
- virtual void TakeFocus(bool reverse) OVERRIDE;
- virtual void SizeChanged(const gfx::Size& size) OVERRIDE;
- void MenuItemSelected(int selection);
-#endif
-
- private:
- WebContents* web_contents_;
- ContextMenuParams params_;
-
-#if defined(TOOLKIT_GTK)
- ui::OwnedWidgetGtk floating_;
- GtkWidget* expanded_container_;
-
- CHROMEGTK_CALLBACK_0(ShellWebContentsViewDelegate, void,
- OnBackMenuActivated);
- CHROMEGTK_CALLBACK_0(ShellWebContentsViewDelegate, void,
- OnForwardMenuActivated);
- CHROMEGTK_CALLBACK_0(ShellWebContentsViewDelegate, void,
- OnReloadMenuActivated);
- CHROMEGTK_CALLBACK_0(ShellWebContentsViewDelegate, void,
- OnOpenURLMenuActivated);
- CHROMEGTK_CALLBACK_0(ShellWebContentsViewDelegate, void,
- OnCutMenuActivated);
- CHROMEGTK_CALLBACK_0(ShellWebContentsViewDelegate, void,
- OnCopyMenuActivated);
- CHROMEGTK_CALLBACK_0(ShellWebContentsViewDelegate, void,
- OnPasteMenuActivated);
- CHROMEGTK_CALLBACK_0(ShellWebContentsViewDelegate, void,
- OnDeleteMenuActivated);
- CHROMEGTK_CALLBACK_0(ShellWebContentsViewDelegate, void,
- OnInspectMenuActivated);
-#endif
-
- DISALLOW_COPY_AND_ASSIGN(ShellWebContentsViewDelegate);
-};
-
-} // namespace content
-
-#endif // CONTENT_SHELL_SHELL_WEB_CONTENTS_VIEW_DELEGATE_H_
« no previous file with comments | « content/shell/shell_url_request_context_getter.cc ('k') | content/shell/shell_web_contents_view_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698