summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-13 12:55:53 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-13 12:55:53 +0000
commit946f811c8c74f3dfe483f9afa89f3f8a9da6cec1 (patch)
treedde388402126d75c3f3112f65516d7e592699e66 /content
parentb17c116795d9347262a1aa9b7a90b94915be22ad (diff)
downloadchromium_src-946f811c8c74f3dfe483f9afa89f3f8a9da6cec1.zip
chromium_src-946f811c8c74f3dfe483f9afa89f3f8a9da6cec1.tar.gz
chromium_src-946f811c8c74f3dfe483f9afa89f3f8a9da6cec1.tar.bz2
Eliminate last chrome dependency on render_widget_host_view_mac.h
BUG=98716 Review URL: http://codereview.chromium.org/9622005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126383 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/renderer_host/render_widget_host_view_mac.h4
-rw-r--r--content/public/browser/render_widget_host_view_mac_base.h19
2 files changed, 22 insertions, 1 deletions
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.h b/content/browser/renderer_host/render_widget_host_view_mac.h
index c273ce7..5e2a054 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.h
+++ b/content/browser/renderer_host/render_widget_host_view_mac.h
@@ -16,6 +16,7 @@
#include "content/browser/renderer_host/accelerated_surface_container_manager_mac.h"
#include "content/browser/renderer_host/render_widget_host_view_base.h"
#include "content/common/edit_command.h"
+#import "content/public/browser/render_widget_host_view_mac_base.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderline.h"
#include "ui/base/cocoa/base_view.h"
#include "webkit/glue/webcursor.h"
@@ -39,7 +40,8 @@ class RenderWidgetHostImpl;
// but that means that the view needs to own the delegate and will dispose of it
// when it's removed from the view system.
@interface RenderWidgetHostViewCocoa
- : BaseView <RenderWidgetHostViewMacOwner,
+ : BaseView <RenderWidgetHostViewMacBase,
+ RenderWidgetHostViewMacOwner,
NSTextInputClient,
BrowserAccessibilityDelegateCocoa> {
@private
diff --git a/content/public/browser/render_widget_host_view_mac_base.h b/content/public/browser/render_widget_host_view_mac_base.h
new file mode 100644
index 0000000..80f63c8
--- /dev/null
+++ b/content/public/browser/render_widget_host_view_mac_base.h
@@ -0,0 +1,19 @@
+// 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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_MAC_BASE_H_
+#define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_MAC_BASE_H_
+#pragma once
+
+// The Mac RenderWidgetHostView implementation conforms to this protocol.
+//
+// While Chrome does not need any details of the actual
+// implementation, there may be cases where it needs to alter behavior
+// depending on whether an event receiver is the Mac implementation of
+// RenderWidgetHostView. For this purpose,
+// conformsToProtocol:@protocol(RenderWidgetHostViewMacBase) can be used.
+@protocol RenderWidgetHostViewMacBase
+@end
+
+#endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_MAC_BASE_H_