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_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 bool GetSelectionRange(gfx::Range* range) const override; | 216 bool GetSelectionRange(gfx::Range* range) const override; |
217 bool SetSelectionRange(const gfx::Range& range) override; | 217 bool SetSelectionRange(const gfx::Range& range) override; |
218 bool DeleteRange(const gfx::Range& range) override; | 218 bool DeleteRange(const gfx::Range& range) override; |
219 bool GetTextFromRange(const gfx::Range& range, | 219 bool GetTextFromRange(const gfx::Range& range, |
220 base::string16* text) const override; | 220 base::string16* text) const override; |
221 void OnInputMethodChanged() override; | 221 void OnInputMethodChanged() override; |
222 bool ChangeTextDirectionAndLayoutAlignment( | 222 bool ChangeTextDirectionAndLayoutAlignment( |
223 base::i18n::TextDirection direction) override; | 223 base::i18n::TextDirection direction) override; |
224 void ExtendSelectionAndDelete(size_t before, size_t after) override; | 224 void ExtendSelectionAndDelete(size_t before, size_t after) override; |
225 void EnsureCaretNotInRect(const gfx::Rect& rect) override; | 225 void EnsureCaretNotInRect(const gfx::Rect& rect) override; |
| 226 void OnClientFocusLost() override; |
226 bool IsTextEditCommandEnabled(ui::TextEditCommand command) const override; | 227 bool IsTextEditCommandEnabled(ui::TextEditCommand command) const override; |
227 void SetTextEditCommandForNextKeyEvent(ui::TextEditCommand command) override; | 228 void SetTextEditCommandForNextKeyEvent(ui::TextEditCommand command) override; |
228 | 229 |
229 // Overridden from display::DisplayObserver: | 230 // Overridden from display::DisplayObserver: |
230 void OnDisplayAdded(const display::Display& new_display) override; | 231 void OnDisplayAdded(const display::Display& new_display) override; |
231 void OnDisplayRemoved(const display::Display& old_display) override; | 232 void OnDisplayRemoved(const display::Display& old_display) override; |
232 void OnDisplayMetricsChanged(const display::Display& display, | 233 void OnDisplayMetricsChanged(const display::Display& display, |
233 uint32_t metrics) override; | 234 uint32_t metrics) override; |
234 | 235 |
235 // Overridden from aura::WindowDelegate: | 236 // Overridden from aura::WindowDelegate: |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 void OnBeginFrameSourcePausedChanged(bool paused) override; | 440 void OnBeginFrameSourcePausedChanged(bool paused) override; |
440 | 441 |
441 // Detaches |this| from the input method object. | 442 // Detaches |this| from the input method object. |
442 void DetachFromInputMethod(); | 443 void DetachFromInputMethod(); |
443 | 444 |
444 // Dismisses a Web Popup on a mouse or touch press outside the popup and its | 445 // Dismisses a Web Popup on a mouse or touch press outside the popup and its |
445 // parent. | 446 // parent. |
446 void ApplyEventFilterForPopupExit(ui::LocatedEvent* event); | 447 void ApplyEventFilterForPopupExit(ui::LocatedEvent* event); |
447 | 448 |
448 // Converts |rect| from screen coordinate to window coordinate. | 449 // Converts |rect| from screen coordinate to window coordinate. |
449 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const; | 450 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect, |
| 451 aura::Window* window) const; |
450 | 452 |
451 // Called when the parent window bounds change. | 453 // Called when the parent window bounds change. |
452 void HandleParentBoundsChanged(); | 454 void HandleParentBoundsChanged(); |
453 | 455 |
454 // Called when the parent window hierarchy for our window changes. | 456 // Called when the parent window hierarchy for our window changes. |
455 void ParentHierarchyChanged(); | 457 void ParentHierarchyChanged(); |
456 | 458 |
457 // Helper function to be called whenever new selection information is | 459 // Helper function to be called whenever new selection information is |
458 // received. It will update selection controller. | 460 // received. It will update selection controller. |
459 void SelectionUpdated(bool is_editable, | 461 void SelectionUpdated(bool is_editable, |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; | 596 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; |
595 | 597 |
596 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 598 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
597 | 599 |
598 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 600 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
599 }; | 601 }; |
600 | 602 |
601 } // namespace content | 603 } // namespace content |
602 | 604 |
603 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 605 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |