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

Unified Diff: ash/wm/partial_screenshot_event_filter.h

Issue 10825026: Make accelerators not to work when the keyboard overlay is shown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/overlay_event_filter.cc ('k') | ash/wm/partial_screenshot_event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/partial_screenshot_event_filter.h
diff --git a/ash/wm/partial_screenshot_event_filter.h b/ash/wm/partial_screenshot_event_filter.h
deleted file mode 100644
index 730c262ca25c9db3fcb6a3efc1d6fb06bec5e27a..0000000000000000000000000000000000000000
--- a/ash/wm/partial_screenshot_event_filter.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_WM_PARTIAL_SCREENSHOT_EVENT_FILTER_H_
-#define ASH_WM_PARTIAL_SCREENSHOT_EVENT_FILTER_H_
-
-#include "ash/shell_observer.h"
-#include "base/compiler_specific.h"
-#include "ui/aura/event.h"
-#include "ui/aura/event_filter.h"
-
-namespace ash {
-class PartialScreenshotView;
-
-namespace internal {
-
-// EventFilter for the partial screenshot UI. It does nothing
-// for the first time, but works when |Activate()| is called. The
-// main task of this event filter is just to stop propagation of any
-// key events during activation, and also signal cancellation when Esc is
-// pressed.
-class PartialScreenshotEventFilter : public aura::EventFilter,
- public ShellObserver {
- public:
- PartialScreenshotEventFilter();
- virtual ~PartialScreenshotEventFilter();
-
- // Start the filtering of events. It also notifies the specified
- // |view| when a key event means cancel (like Esc). It holds the
- // pointer to the specified |view| until Deactivate() is called, but
- // does not take ownership.
- void Activate(PartialScreenshotView* view);
-
- // End the filtering of events.
- void Deactivate();
-
- // Cancels the partial screenshot UI. Do nothing if it's not activated.
- void Cancel();
-
- // aura::EventFilter overrides:
- virtual bool PreHandleKeyEvent(
- aura::Window* target, aura::KeyEvent* event) OVERRIDE;
- virtual bool PreHandleMouseEvent(
- aura::Window* target, aura::MouseEvent* event) OVERRIDE;
- virtual ui::TouchStatus PreHandleTouchEvent(
- aura::Window* target, aura::TouchEvent* event) OVERRIDE;
- virtual ui::GestureStatus PreHandleGestureEvent(
- aura::Window* target, aura::GestureEvent* event) OVERRIDE;
-
- // ShellObserver overrides:
- virtual void OnLoginStateChanged(user::LoginStatus status) OVERRIDE;
- virtual void OnAppTerminating() OVERRIDE;
- virtual void OnLockStateChanged(bool locked) OVERRIDE;
-
- private:
- PartialScreenshotView* view_;
-
- DISALLOW_COPY_AND_ASSIGN(PartialScreenshotEventFilter);
-};
-
-} // namespace internal
-} // namespace ash
-
-#endif // ASH_WM_PARTIAL_SCREENSHOT_EVENT_FILTER_H_
« no previous file with comments | « ash/wm/overlay_event_filter.cc ('k') | ash/wm/partial_screenshot_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698