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

Unified Diff: aura/window_delegate.h

Issue 7886042: Move Aura to UI subdir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « aura/window.cc ('k') | aura/window_manager.h » ('j') | ui/aura/aura.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: aura/window_delegate.h
===================================================================
--- aura/window_delegate.h (revision 100961)
+++ aura/window_delegate.h (working copy)
@@ -1,53 +0,0 @@
-// Copyright (c) 2011 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 AURA_WINDOW_DELEGATE_H_
-#define AURA_WINDOW_DELEGATE_H_
-#pragma once
-
-namespace gfx {
-class Canvas;
-class Point;
-}
-
-namespace aura {
-
-class KeyEvent;
-class MouseEvent;
-
-// Delegate interface for aura::Window.
-class WindowDelegate {
- public:
- // Sent to the Window's delegate when the Window gains or loses focus.
- virtual void OnFocus() = 0;
- virtual void OnBlur() = 0;
-
- virtual bool OnKeyEvent(KeyEvent* event) = 0;
-
- // Returns the non-client component (see hit_test.h) containing |point|, in
- // window coordinates.
- virtual int GetNonClientComponent(const gfx::Point& point) const = 0;
-
- virtual bool OnMouseEvent(MouseEvent* event) = 0;
-
- // Asks the delegate to paint window contents into the supplied canvas.
- virtual void OnPaint(gfx::Canvas* canvas) = 0;
-
- // Called from Window's destructor before OnWindowDestroyed and before the
- // children have been destroyed.
- virtual void OnWindowDestroying() = 0;
-
- // Called when the Window has been destroyed (i.e. from its destructor). This
- // is called after OnWindowDestroying and after the children have been
- // deleted.
- // The delegate can use this as an opportunity to delete itself if necessary.
- virtual void OnWindowDestroyed() = 0;
-
- protected:
- virtual ~WindowDelegate() {}
-};
-
-} // namespace aura
-
-#endif // AURA_WINDOW_DELEGATE_H_
« no previous file with comments | « aura/window.cc ('k') | aura/window_manager.h » ('j') | ui/aura/aura.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698