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

Side by Side Diff: chrome/browser/views/frame/embedded_frame.h

Issue 10973: Test the feasibility of turning Chrome into a multi-process ActiveX control Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 12 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_VIEWS_FRAME_EMBEDDED_FRAME_H_
6 #define CHROME_BROWSER_VIEWS_FRAME_EMBEDDED_FRAME_H_
7
8 #include "chrome/browser/views/frame/browser_frame.h"
9 #include "chrome/views/custom_frame_window.h"
10
11 class BrowserView;
12 namespace views {
13 class Window;
14 }
15 class EmbeddedNonClientView;
16 class TabStrip;
17
18 ///////////////////////////////////////////////////////////////////////////////
19 // EmbeddedFrame
20 //
21 // EmbeddedFrame is a CustomFrameWindow subclass that in conjunction with
22 // EmbeddedNonClientView provides the window frame with no non-client area.
23 //
24 class EmbeddedFrame : public BrowserFrame,
25 public views::CustomFrameWindow {
26 public:
27 explicit EmbeddedFrame(BrowserView* browser_view);
28 virtual ~EmbeddedFrame();
29
30 void Init(HWND parent, const gfx::Rect& bounds);
31
32 protected:
33 // Overridden from BrowserFrame:
34 virtual gfx::Rect GetWindowBoundsForClientBounds(
35 const gfx::Rect& client_bounds);
36 virtual void SizeToContents(const gfx::Rect& contents_bounds);
37 virtual gfx::Rect GetBoundsForTabStrip(TabStrip* tabstrip) const;
38 virtual void UpdateThrobber(bool running);
39 virtual views::Window* GetWindow();
40
41 // Overridden from views::CustomFrameWindow:
42 virtual void UpdateWindowIcon();
43 virtual int GetShowState() const;
44
45 // Overridden from views::ContainerWin:
46 virtual bool AcceleratorPressed(views::Accelerator* accelerator);
47 virtual bool GetAccelerator(int cmd_id, views::Accelerator* accelerator);
48 virtual void OnEndSession(BOOL ending, UINT logoff);
49 virtual void OnInitMenuPopup(HMENU menu, UINT position, BOOL is_system_menu);
50 virtual LRESULT OnMouseActivate(HWND window,
51 UINT hittest_code,
52 UINT message);
53 virtual void OnMove(const CPoint& point);
54 virtual void OnMoving(UINT param, const RECT* new_bounds);
55 virtual LRESULT OnNCActivate(BOOL active);
56 virtual void OnSysCommand(UINT notification_code, CPoint click);
57
58 private:
59 // Return a pointer to the concrete type of our non-client view.
60 EmbeddedNonClientView* GetEmbeddedNonClientView() const;
61
62 // The BrowserView is our ClientView. This is a pointer to it.
63 BrowserView* browser_view_;
64
65 DISALLOW_EVIL_CONSTRUCTORS(EmbeddedFrame);
66 };
67
68 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_EMBEDDED_FRAME_H_
69
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/browser_window_factory.cc ('k') | chrome/browser/views/frame/embedded_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698