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

Side by Side Diff: extensions/browser/app_window/app_window.cc

Issue 1316013004: Remove "API proposal for chrome.app.window to intercept all keys." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to TOT Created 5 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/app_window/app_window.h" 5 #include "extensions/browser/app_window/app_window.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 OnNativeWindowChanged(); 698 OnNativeWindowChanged();
699 } 699 }
700 700
701 bool AppWindow::IsAlwaysOnTop() const { return cached_always_on_top_; } 701 bool AppWindow::IsAlwaysOnTop() const { return cached_always_on_top_; }
702 702
703 void AppWindow::RestoreAlwaysOnTop() { 703 void AppWindow::RestoreAlwaysOnTop() {
704 if (cached_always_on_top_) 704 if (cached_always_on_top_)
705 UpdateNativeAlwaysOnTop(); 705 UpdateNativeAlwaysOnTop();
706 } 706 }
707 707
708 void AppWindow::SetInterceptAllKeys(bool want_all_keys) {
709 native_app_window_->SetInterceptAllKeys(want_all_keys);
710 }
711
712 void AppWindow::WindowEventsReady() { 708 void AppWindow::WindowEventsReady() {
713 can_send_events_ = true; 709 can_send_events_ = true;
714 SendOnWindowShownIfShown(); 710 SendOnWindowShownIfShown();
715 } 711 }
716 712
717 void AppWindow::NotifyRenderViewReady() { 713 void AppWindow::NotifyRenderViewReady() {
718 if (app_window_contents_) 714 if (app_window_contents_)
719 app_window_contents_->OnWindowReady(); 715 app_window_contents_->OnWindowReady();
720 } 716 }
721 717
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 region.bounds.x(), 1083 region.bounds.x(),
1088 region.bounds.y(), 1084 region.bounds.y(),
1089 region.bounds.right(), 1085 region.bounds.right(),
1090 region.bounds.bottom(), 1086 region.bounds.bottom(),
1091 region.draggable ? SkRegion::kUnion_Op : SkRegion::kDifference_Op); 1087 region.draggable ? SkRegion::kUnion_Op : SkRegion::kDifference_Op);
1092 } 1088 }
1093 return sk_region; 1089 return sk_region;
1094 } 1090 }
1095 1091
1096 } // namespace extensions 1092 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/app_window/app_window.h ('k') | extensions/browser/app_window/native_app_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698