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

Side by Side Diff: chrome/browser/renderer_host/chrome_render_widget_host_view_mac_delegate.h

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_WIDGET_HOST_VIEW_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_WIDGET_HOST_VIEW_DELEGATE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_WIDGET_HOST_VIEW_DELEGATE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_WIDGET_HOST_VIEW_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #import "content/public/browser/render_widget_host_view_mac_delegate.h" 12 #import "content/public/browser/render_widget_host_view_mac_delegate.h"
13 13
14 namespace content {
14 class RenderWidgetHost; 15 class RenderWidgetHost;
16 }
15 17
16 namespace ChromeRenderWidgetHostViewMacDelegateInternal { 18 namespace ChromeRenderWidgetHostViewMacDelegateInternal {
17 class SpellCheckRenderViewObserver; 19 class SpellCheckRenderViewObserver;
18 } 20 }
19 21
20 @interface ChromeRenderWidgetHostViewMacDelegate 22 @interface ChromeRenderWidgetHostViewMacDelegate
21 : NSObject<RenderWidgetHostViewMacDelegate> { 23 : NSObject<RenderWidgetHostViewMacDelegate> {
22 @private 24 @private
23 RenderWidgetHost* renderWidgetHost_; // weak 25 content::RenderWidgetHost* renderWidgetHost_; // weak
24 scoped_ptr<ChromeRenderWidgetHostViewMacDelegateInternal:: 26 scoped_ptr<ChromeRenderWidgetHostViewMacDelegateInternal::
25 SpellCheckRenderViewObserver> spellingObserver_; 27 SpellCheckRenderViewObserver> spellingObserver_;
26 28
27 // If the viewport is scrolled all the way to the left or right. 29 // If the viewport is scrolled all the way to the left or right.
28 // Used for history swiping. 30 // Used for history swiping.
29 BOOL isPinnedLeft_; 31 BOOL isPinnedLeft_;
30 BOOL isPinnedRight_; 32 BOOL isPinnedRight_;
31 33
32 // If the main frame has a horizontal scrollbar. 34 // If the main frame has a horizontal scrollbar.
33 // Used for history swiping. 35 // Used for history swiping.
34 BOOL hasHorizontalScrollbar_; 36 BOOL hasHorizontalScrollbar_;
35 37
36 // If a scroll event came back unhandled from the renderer. Set to |NO| at 38 // If a scroll event came back unhandled from the renderer. Set to |NO| at
37 // the start of a scroll gesture, and then to |YES| if a scroll event comes 39 // the start of a scroll gesture, and then to |YES| if a scroll event comes
38 // back unhandled from the renderer. 40 // back unhandled from the renderer.
39 // Used for history swiping. 41 // Used for history swiping.
40 BOOL gotUnhandledWheelEvent_; 42 BOOL gotUnhandledWheelEvent_;
41 43
42 // Cumulative scroll delta since scroll gesture start. Only valid during 44 // Cumulative scroll delta since scroll gesture start. Only valid during
43 // scroll gesture handling. Used for history swiping. 45 // scroll gesture handling. Used for history swiping.
44 NSSize totalScrollDelta_; 46 NSSize totalScrollDelta_;
45 47
46 // Used for continuous spell checking. 48 // Used for continuous spell checking.
47 BOOL spellcheckEnabled_; 49 BOOL spellcheckEnabled_;
48 BOOL spellcheckChecked_; 50 BOOL spellcheckChecked_;
49 } 51 }
50 52
51 - (id)initWithRenderWidgetHost:(RenderWidgetHost*)renderWidgetHost; 53 - (id)initWithRenderWidgetHost:(content::RenderWidgetHost*)renderWidgetHost;
52 54
53 - (void)viewGone:(NSView*)view; 55 - (void)viewGone:(NSView*)view;
54 - (BOOL)handleEvent:(NSEvent*)event; 56 - (BOOL)handleEvent:(NSEvent*)event;
55 - (void)gotUnhandledWheelEvent; 57 - (void)gotUnhandledWheelEvent;
56 - (void)scrollOffsetPinnedToLeft:(BOOL)left toRight:(BOOL)right; 58 - (void)scrollOffsetPinnedToLeft:(BOOL)left toRight:(BOOL)right;
57 - (void)setHasHorizontalScrollbar:(BOOL)hasHorizontalScrollbar; 59 - (void)setHasHorizontalScrollbar:(BOOL)hasHorizontalScrollbar;
58 - (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item 60 - (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item
59 isValidItem:(BOOL*)valid; 61 isValidItem:(BOOL*)valid;
60 62
61 @end 63 @end
62 64
63 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_WIDGET_HOST_VIEW_DELEGATE_ H_ 65 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_WIDGET_HOST_VIEW_DELEGATE_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698