Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: ui/views/widget/native_widget_aura.cc

Issue 351683002: Adds link disambiguation popup support to Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: responding to cpu's feedback Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "ui/views/widget/native_widget_aura.h" 5 #include "ui/views/widget/native_widget_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "third_party/skia/include/core/SkRegion.h" 9 #include "third_party/skia/include/core/SkRegion.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 817
818 bool NativeWidgetAura::HasHitTestMask() const { 818 bool NativeWidgetAura::HasHitTestMask() const {
819 return delegate_->HasHitTestMask(); 819 return delegate_->HasHitTestMask();
820 } 820 }
821 821
822 void NativeWidgetAura::GetHitTestMask(gfx::Path* mask) const { 822 void NativeWidgetAura::GetHitTestMask(gfx::Path* mask) const {
823 DCHECK(mask); 823 DCHECK(mask);
824 delegate_->GetHitTestMask(mask); 824 delegate_->GetHitTestMask(mask);
825 } 825 }
826 826
827 void NativeWidgetAura::OnLinkDisambiguationPopupRequested(
828 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap) {
829 }
830
827 //////////////////////////////////////////////////////////////////////////////// 831 ////////////////////////////////////////////////////////////////////////////////
828 // NativeWidgetAura, ui::EventHandler implementation: 832 // NativeWidgetAura, ui::EventHandler implementation:
829 833
830 void NativeWidgetAura::OnKeyEvent(ui::KeyEvent* event) { 834 void NativeWidgetAura::OnKeyEvent(ui::KeyEvent* event) {
831 DCHECK(window_); 835 DCHECK(window_);
832 if (event->is_char()) { 836 if (event->is_char()) {
833 // If a ui::InputMethod object is attached to the root window, character 837 // If a ui::InputMethod object is attached to the root window, character
834 // events are handled inside the object and are not passed to this function. 838 // events are handled inside the object and are not passed to this function.
835 // If such object is not attached, character events might be sent (e.g. on 839 // If such object is not attached, character events might be sent (e.g. on
836 // Windows). In this case, we just skip these. 840 // Windows). In this case, we just skip these.
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 l10n_util::AdjustUIFont(&(ncm.lfCaptionFont)); 1159 l10n_util::AdjustUIFont(&(ncm.lfCaptionFont));
1156 base::win::ScopedHFONT caption_font(CreateFontIndirect(&(ncm.lfCaptionFont))); 1160 base::win::ScopedHFONT caption_font(CreateFontIndirect(&(ncm.lfCaptionFont)));
1157 return gfx::FontList(gfx::Font(caption_font)); 1161 return gfx::FontList(gfx::Font(caption_font));
1158 #else 1162 #else
1159 return gfx::FontList(); 1163 return gfx::FontList();
1160 #endif 1164 #endif
1161 } 1165 }
1162 1166
1163 } // namespace internal 1167 } // namespace internal
1164 } // namespace views 1168 } // namespace views
OLDNEW
« ui/aura/window_delegate.h ('K') | « ui/views/widget/native_widget_aura.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698