| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/task.h" | 10 #include "base/task.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 virtual gfx::Rect GetViewBounds() const; | 75 virtual gfx::Rect GetViewBounds() const; |
| 76 virtual void UpdateCursor(const WebCursor& cursor); | 76 virtual void UpdateCursor(const WebCursor& cursor); |
| 77 virtual void SetIsLoading(bool is_loading); | 77 virtual void SetIsLoading(bool is_loading); |
| 78 virtual void IMEUpdateStatus(int control, const gfx::Rect& caret_rect); | 78 virtual void IMEUpdateStatus(int control, const gfx::Rect& caret_rect); |
| 79 virtual void DidPaintRect(const gfx::Rect& rect); | 79 virtual void DidPaintRect(const gfx::Rect& rect); |
| 80 virtual void DidScrollRect(const gfx::Rect& rect, int dx, int dy); | 80 virtual void DidScrollRect(const gfx::Rect& rect, int dx, int dy); |
| 81 virtual void RenderViewGone(); | 81 virtual void RenderViewGone(); |
| 82 virtual void Destroy(); | 82 virtual void Destroy(); |
| 83 virtual void SetTooltipText(const std::wstring& tooltip_text); | 83 virtual void SetTooltipText(const std::wstring& tooltip_text); |
| 84 virtual BackingStore* AllocBackingStore(const gfx::Size& size); | 84 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
| 85 virtual void ShowPopupWithItems(gfx::Rect bounds, |
| 86 int item_height, |
| 87 int selected_item, |
| 88 const std::vector<WebMenuItem>& items); |
| 85 | 89 |
| 86 void KillSelf(); | 90 void KillSelf(); |
| 87 | 91 |
| 92 void set_parent_view(BaseView* parent_view) { parent_view_ = parent_view; } |
| 93 |
| 88 // These member variables should be private, but the associated ObjC class | 94 // These member variables should be private, but the associated ObjC class |
| 89 // needs access to them and can't be made a friend. | 95 // needs access to them and can't be made a friend. |
| 90 | 96 |
| 91 // The associated Model. | 97 // The associated Model. |
| 92 RenderWidgetHost* render_widget_host_; | 98 RenderWidgetHost* render_widget_host_; |
| 93 | 99 |
| 94 // This is true when we are currently painting and thus should handle extra | 100 // This is true when we are currently painting and thus should handle extra |
| 95 // paint requests by expanding the invalid rect rather than actually painting. | 101 // paint requests by expanding the invalid rect rather than actually painting. |
| 96 bool about_to_validate_and_paint_; | 102 bool about_to_validate_and_paint_; |
| 97 | 103 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 124 // true if the View is not visible. | 130 // true if the View is not visible. |
| 125 bool is_hidden_; | 131 bool is_hidden_; |
| 126 | 132 |
| 127 // Tooltips | 133 // Tooltips |
| 128 // The text to be shown in the tooltip, supplied by the renderer. | 134 // The text to be shown in the tooltip, supplied by the renderer. |
| 129 std::wstring tooltip_text_; | 135 std::wstring tooltip_text_; |
| 130 | 136 |
| 131 // Factory used to safely scope delayed calls to ShutdownHost(). | 137 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 132 ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_; | 138 ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_; |
| 133 | 139 |
| 140 // Used for positioning a popup menu. |
| 141 BaseView* parent_view_; |
| 142 |
| 134 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 143 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 135 }; | 144 }; |
| 136 | 145 |
| 137 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 146 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |