| OLD | NEW |
| 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "content/common/drag_event_source_info.h" | 13 #include "content/common/drag_event_source_info.h" |
| 14 #include "third_party/WebKit/public/platform/WebDragOperation.h" | 14 #include "third_party/WebKit/public/platform/WebDragOperation.h" |
| 15 | 15 |
| 16 namespace gfx { | 16 namespace gfx { |
| 17 class ImageSkia; | 17 class ImageSkia; |
| 18 class Rect; | 18 class Rect; |
| 19 class Vector2d; | 19 class Vector2d; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace ui { |
| 23 #if defined(OS_ANDROID) |
| 24 class OverscrollRefreshHandler; |
| 25 #endif |
| 26 } |
| 27 |
| 22 namespace content { | 28 namespace content { |
| 23 class RenderFrameHost; | 29 class RenderFrameHost; |
| 24 class RenderWidgetHostImpl; | 30 class RenderWidgetHostImpl; |
| 25 struct ContextMenuParams; | 31 struct ContextMenuParams; |
| 26 struct DropData; | 32 struct DropData; |
| 27 struct MenuItem; | 33 struct MenuItem; |
| 28 | 34 |
| 29 // This class provides a way for the RenderViewHost to reach out to its | 35 // This class provides a way for the RenderViewHost to reach out to its |
| 30 // delegate's view. | 36 // delegate's view. |
| 31 class CONTENT_EXPORT RenderViewHostDelegateView { | 37 class CONTENT_EXPORT RenderViewHostDelegateView { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 double item_font_size, | 75 double item_font_size, |
| 70 int selected_item, | 76 int selected_item, |
| 71 const std::vector<MenuItem>& items, | 77 const std::vector<MenuItem>& items, |
| 72 bool right_aligned, | 78 bool right_aligned, |
| 73 bool allow_multiple_selection) {}; | 79 bool allow_multiple_selection) {}; |
| 74 | 80 |
| 75 // Hides a popup menu opened by ShowPopupMenu(). | 81 // Hides a popup menu opened by ShowPopupMenu(). |
| 76 virtual void HidePopupMenu() {}; | 82 virtual void HidePopupMenu() {}; |
| 77 #endif | 83 #endif |
| 78 | 84 |
| 85 #if defined(OS_ANDROID) |
| 86 virtual ui::OverscrollRefreshHandler* GetOverscrollRefreshHandler() const; |
| 87 #endif |
| 88 |
| 79 protected: | 89 protected: |
| 80 virtual ~RenderViewHostDelegateView() {} | 90 virtual ~RenderViewHostDelegateView() {} |
| 81 }; | 91 }; |
| 82 | 92 |
| 83 } // namespace content | 93 } // namespace content |
| 84 | 94 |
| 85 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ | 95 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ |
| OLD | NEW |