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 #include "content/browser/web_contents/web_contents_view_aura.h" | 5 #include "content/browser/web_contents/web_contents_view_aura.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 } | 1009 } |
1010 | 1010 |
1011 void WebContentsViewAura::UpdateDragCursor(blink::WebDragOperation operation) { | 1011 void WebContentsViewAura::UpdateDragCursor(blink::WebDragOperation operation) { |
1012 current_drag_op_ = operation; | 1012 current_drag_op_ = operation; |
1013 } | 1013 } |
1014 | 1014 |
1015 void WebContentsViewAura::GotFocus() { | 1015 void WebContentsViewAura::GotFocus() { |
1016 web_contents_->NotifyWebContentsFocused(); | 1016 web_contents_->NotifyWebContentsFocused(); |
1017 } | 1017 } |
1018 | 1018 |
| 1019 void WebContentsViewAura::LostFocus() { |
| 1020 web_contents_->NotifyWebContentsLostFocus(); |
| 1021 } |
| 1022 |
1019 void WebContentsViewAura::TakeFocus(bool reverse) { | 1023 void WebContentsViewAura::TakeFocus(bool reverse) { |
1020 if (web_contents_->GetDelegate() && | 1024 if (web_contents_->GetDelegate() && |
1021 !web_contents_->GetDelegate()->TakeFocus(web_contents_, reverse) && | 1025 !web_contents_->GetDelegate()->TakeFocus(web_contents_, reverse) && |
1022 delegate_.get()) { | 1026 delegate_.get()) { |
1023 delegate_->TakeFocus(reverse); | 1027 delegate_->TakeFocus(reverse); |
1024 } | 1028 } |
1025 } | 1029 } |
1026 | 1030 |
1027 //////////////////////////////////////////////////////////////////////////////// | 1031 //////////////////////////////////////////////////////////////////////////////// |
1028 // WebContentsViewAura, OverscrollControllerDelegate implementation: | 1032 // WebContentsViewAura, OverscrollControllerDelegate implementation: |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1341 bool allow_multiple_selection) { | 1345 bool allow_multiple_selection) { |
1342 NOTIMPLEMENTED() << " show " << items.size() << " menu items"; | 1346 NOTIMPLEMENTED() << " show " << items.size() << " menu items"; |
1343 } | 1347 } |
1344 | 1348 |
1345 void WebContentsViewAura::HidePopupMenu() { | 1349 void WebContentsViewAura::HidePopupMenu() { |
1346 NOTIMPLEMENTED(); | 1350 NOTIMPLEMENTED(); |
1347 } | 1351 } |
1348 #endif | 1352 #endif |
1349 | 1353 |
1350 } // namespace content | 1354 } // namespace content |
OLD | NEW |