| 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_WIDGET_HOST_VIEW_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(OS_MACOSX) | 9 #if defined(OS_MACOSX) |
| 10 #include <OpenGL/OpenGL.h> | 10 #include <OpenGL/OpenGL.h> |
| 11 #endif | 11 #endif |
| 12 | 12 |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/process_util.h" | 17 #include "base/process_util.h" |
| 18 #include "base/callback_forward.h" | 18 #include "base/callback_forward.h" |
| 19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
| 20 #include "third_party/skia/include/core/SkBitmap.h" | 20 #include "third_party/skia/include/core/SkBitmap.h" |
| 21 #include "third_party/skia/include/core/SkColor.h" | 21 #include "third_party/skia/include/core/SkColor.h" |
| 22 #include "third_party/skia/include/core/SkRegion.h" |
| 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 24 #include "ui/base/ime/text_input_type.h" | 25 #include "ui/base/ime/text_input_type.h" |
| 25 #include "ui/base/range/range.h" | 26 #include "ui/base/range/range.h" |
| 26 #include "ui/gfx/native_widget_types.h" | 27 #include "ui/gfx/native_widget_types.h" |
| 27 #include "ui/gfx/surface/transport_dib.h" | 28 #include "ui/gfx/surface/transport_dib.h" |
| 28 | 29 |
| 29 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; | 30 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; |
| 30 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; | 31 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; |
| 31 | 32 |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 virtual void ProcessTouchAck(bool processed) = 0; | 321 virtual void ProcessTouchAck(bool processed) = 0; |
| 321 | 322 |
| 322 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; | 323 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; |
| 323 virtual void SetScrollOffsetPinning( | 324 virtual void SetScrollOffsetPinning( |
| 324 bool is_pinned_to_left, bool is_pinned_to_right) = 0; | 325 bool is_pinned_to_left, bool is_pinned_to_right) = 0; |
| 325 | 326 |
| 326 // Return value indicates whether the mouse is locked successfully or not. | 327 // Return value indicates whether the mouse is locked successfully or not. |
| 327 virtual bool LockMouse() = 0; | 328 virtual bool LockMouse() = 0; |
| 328 virtual void UnlockMouse() = 0; | 329 virtual void UnlockMouse() = 0; |
| 329 | 330 |
| 331 // The region specified will be transparent to mouse clicks. |
| 332 virtual void SetTransparentRegion(SkRegion* region) {} |
| 333 |
| 330 void set_popup_type(WebKit::WebPopupType popup_type) { | 334 void set_popup_type(WebKit::WebPopupType popup_type) { |
| 331 popup_type_ = popup_type; | 335 popup_type_ = popup_type; |
| 332 } | 336 } |
| 333 WebKit::WebPopupType popup_type() const { return popup_type_; } | 337 WebKit::WebPopupType popup_type() const { return popup_type_; } |
| 334 | 338 |
| 335 // Subclasses should override this method to do what is appropriate to set | 339 // Subclasses should override this method to do what is appropriate to set |
| 336 // the custom background for their platform. | 340 // the custom background for their platform. |
| 337 CONTENT_EXPORT virtual void SetBackground(const SkBitmap& background); | 341 CONTENT_EXPORT virtual void SetBackground(const SkBitmap& background); |
| 338 const SkBitmap& background() const { return background_; } | 342 const SkBitmap& background() const { return background_; } |
| 339 | 343 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 ui::Range selection_range_; | 384 ui::Range selection_range_; |
| 381 | 385 |
| 382 private: | 386 private: |
| 383 // Manager of the tree representation of the WebKit render tree. | 387 // Manager of the tree representation of the WebKit render tree. |
| 384 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 388 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
| 385 | 389 |
| 386 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 390 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
| 387 }; | 391 }; |
| 388 | 392 |
| 389 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 393 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |