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

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

Issue 1536493002: Working proof of concept of select to speak (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drag across multiple objects Created 5 years 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
« no previous file with comments | « ui/views/widget/native_widget_aura.h ('k') | ui/views/widget/native_widget_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 void NativeWidgetAura::OnScrollEvent(ui::ScrollEvent* event) { 896 void NativeWidgetAura::OnScrollEvent(ui::ScrollEvent* event) {
897 delegate_->OnScrollEvent(event); 897 delegate_->OnScrollEvent(event);
898 } 898 }
899 899
900 void NativeWidgetAura::OnGestureEvent(ui::GestureEvent* event) { 900 void NativeWidgetAura::OnGestureEvent(ui::GestureEvent* event) {
901 DCHECK(window_); 901 DCHECK(window_);
902 DCHECK(window_->IsVisible() || event->IsEndingEvent()); 902 DCHECK(window_->IsVisible() || event->IsEndingEvent());
903 delegate_->OnGestureEvent(event); 903 delegate_->OnGestureEvent(event);
904 } 904 }
905 905
906 void NativeWidgetAura::OnAccessibilityMouseEvent(ui::MouseEvent* event) {
907 DCHECK(window_);
908 DCHECK(window_->IsVisible());
909 delegate_->OnAccessibilityMouseEvent(event);
910 }
911
906 //////////////////////////////////////////////////////////////////////////////// 912 ////////////////////////////////////////////////////////////////////////////////
907 // NativeWidgetAura, aura::client::ActivationDelegate implementation: 913 // NativeWidgetAura, aura::client::ActivationDelegate implementation:
908 914
909 bool NativeWidgetAura::ShouldActivate() const { 915 bool NativeWidgetAura::ShouldActivate() const {
910 return delegate_->CanActivate(); 916 return delegate_->CanActivate();
911 } 917 }
912 918
913 //////////////////////////////////////////////////////////////////////////////// 919 ////////////////////////////////////////////////////////////////////////////////
914 // NativeWidgetAura, aura::client::ActivationChangeObserver implementation: 920 // NativeWidgetAura, aura::client::ActivationChangeObserver implementation:
915 921
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 l10n_util::AdjustUIFont(&(ncm.lfCaptionFont)); 1174 l10n_util::AdjustUIFont(&(ncm.lfCaptionFont));
1169 base::win::ScopedHFONT caption_font(CreateFontIndirect(&(ncm.lfCaptionFont))); 1175 base::win::ScopedHFONT caption_font(CreateFontIndirect(&(ncm.lfCaptionFont)));
1170 return gfx::FontList(gfx::Font(caption_font.get())); 1176 return gfx::FontList(gfx::Font(caption_font.get()));
1171 #else 1177 #else
1172 return gfx::FontList(); 1178 return gfx::FontList();
1173 #endif 1179 #endif
1174 } 1180 }
1175 1181
1176 } // namespace internal 1182 } // namespace internal
1177 } // namespace views 1183 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.h ('k') | ui/views/widget/native_widget_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698