| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 virtual void SelectionChanged(const std::string& text, | 183 virtual void SelectionChanged(const std::string& text, |
| 184 const ui::Range& range) {} | 184 const ui::Range& range) {} |
| 185 | 185 |
| 186 // Tells the View whether the context menu is showing. This is used on Linux | 186 // Tells the View whether the context menu is showing. This is used on Linux |
| 187 // to suppress updates to webkit focus for the duration of the show. | 187 // to suppress updates to webkit focus for the duration of the show. |
| 188 virtual void ShowingContextMenu(bool showing) {} | 188 virtual void ShowingContextMenu(bool showing) {} |
| 189 | 189 |
| 190 // Allocate a backing store for this view | 190 // Allocate a backing store for this view |
| 191 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; | 191 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; |
| 192 | 192 |
| 193 // Notifies the View that a PPAPI plugin is focused or unfocused. |
| 194 virtual void PpapiPluginFocusChanged(bool focused) = 0; |
| 195 |
| 193 #if defined(OS_MACOSX) | 196 #if defined(OS_MACOSX) |
| 194 // Tells the view whether or not to accept first responder status. If |flag| | 197 // Tells the view whether or not to accept first responder status. If |flag| |
| 195 // is true, the view does not accept first responder status and instead | 198 // is true, the view does not accept first responder status and instead |
| 196 // manually becomes first responder when it receives a mouse down event. If | 199 // manually becomes first responder when it receives a mouse down event. If |
| 197 // |flag| is false, the view participates in the key-view chain as normal. | 200 // |flag| is false, the view participates in the key-view chain as normal. |
| 198 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) = 0; | 201 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) = 0; |
| 199 | 202 |
| 200 // Retrieve the bounds of the view, in cocoa view coordinates. | 203 // Retrieve the bounds of the view, in cocoa view coordinates. |
| 201 // If the UI scale factor is 2, |GetViewBounds()| will return a size of e.g. | 204 // If the UI scale factor is 2, |GetViewBounds()| will return a size of e.g. |
| 202 // (400, 300) in pixels, while this method will return (200, 150). | 205 // (400, 300) in pixels, while this method will return (200, 150). |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 329 |
| 327 // The current reserved area in view coordinates where contents should not be | 330 // The current reserved area in view coordinates where contents should not be |
| 328 // rendered to draw the resize corner, sidebar mini tabs etc. | 331 // rendered to draw the resize corner, sidebar mini tabs etc. |
| 329 gfx::Rect reserved_rect_; | 332 gfx::Rect reserved_rect_; |
| 330 | 333 |
| 331 private: | 334 private: |
| 332 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 335 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
| 333 }; | 336 }; |
| 334 | 337 |
| 335 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 338 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |