[chromium-dev] Re: Getting Started with a New Project

2009-07-27 Thread Juan Baez

That I am not too sure about.  Perhaps someone from the UI team could assist
you with this one, or someone who is familiar with the Views framework?

-Original Message-
From: chromium-dev@googlegroups.com [mailto:chromium-...@googlegroups.com]
On Behalf Of Kruncher
Sent: Sunday, July 26, 2009 6:34 PM
To: Chromium-dev
Subject: [chromium-dev] Re: Getting Started with a New Project


Excellent, I am almost there now.

I have looked through several of the Chromium projects, but I cannot
see how they are specifying additional libs. Which libs are needed to
make this link?

Thanks again for your help!

On 26 July, 21:52, Juan Baez tux...@gmail.com wrote:
 You are not missing any header files.  Windows has its own definition of
min
 and max, and so does the STL library.  So to avoid conflict between the
two,
 define the preprocessor directive NOMINMAX in your project.    



 -Original Message-
 From: chromium-dev@googlegroups.com [mailto:chromium-...@googlegroups.com]

 On Behalf Of Kruncher
 Sent: Sunday, July 26, 2009 2:48 PM
 To: Chromium-dev
 Subject: [chromium-dev] Re: Getting Started with a New Project

 What you have suggested seems to have solved the header file issue,
 unfortunately I am now getting the following errors:

 1c:\chromium\src\views\view.h(161) : error C2589: '(' : illegal token
 on right side of '::'
 1c:\chromium\src\views\view.h(161) : error C2059: syntax error : '::'
 1c:\chromium\src\views\view.h(161) : error C2589: '(' : illegal token
 on right side of '::'

 There must be another header or definition that I am missing.

 Here is a snapshot of the code where the errors are being encountered:

   void SetBounds(int x, int y, int width, int height) {
     SetBounds(gfx::Rect(x, y, std::max(0, width), std::max(0,
 height)));        // IT IS THIS LINE ***
   }

 Chromium seems to be undergoing some pretty major changes at the
 moment.

 Many thanks,
 Lea Hayes

 On 26 July, 04:48, Juan Baez tux...@gmail.com wrote:
  After some research and SVN history browsing I found out that
  ChromiumCanvas is no more. Instead, use the gfx::Canvas class.  Your
  header files should look somewhat like this (for the example to
  compile):

  #include app/gfx/canvas.h
  #include views/view.h
  #include views/controls/label.h
  #include views/window/window.h
  #include views/window/window_delegate.h

  Hope that helps a little.

  On Jul 25, 8:34 pm, Juan Baez tux...@gmail.com wrote:

   Where you able to figure this out Kruncher? If so, could you provide
   me with some feedback as to how you resolved the problem? I am sort of
   trying to do something similar myself.

   On Jul 20, 2:41 am, Kruncher leaha...@gmail.com wrote:

Yes, I tried adding thatprojectbut it didn't seem to help.

On 19 July, 20:49, Thiago Farina thiago.far...@gmail.com wrote:

 Did you added the commonprojectto your solution?

 On Jul 19, 12:40 pm, Kruncher leaha...@gmail.com wrote:

  For the purposes of practice I am trying to create an empty
Win32
 Exe
 projectthat uses the demonstration code from:

 http://dev.chromium.org/developers/design-documents/chromeviews

  To do this I have created a new solution and an emptyproject. I
 have
  then added the demonstration code, and in theprojectsettings
added
  the additional include/lib directories (which I copied from an
Exe
 projectfrom the Chromium trunk).

  However, when I try to build theproject, I get the following
  compilation error:

  1c:\chromium\src\quick_test\quick_test\views\main_window.cc(4)
:
  fatal error C1083: Cannot open include file: 'chrome/common/gfx/
  chrome_canvas.h': No such file or directory

  What steps are required to create a new solution/projectof this
  nature? I would really like to use the views API that Chromium
has
 to
  offer.

  Many thanks,
  Lea Hayes



--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Getting Started with a New Project

2009-07-26 Thread Kruncher

What you have suggested seems to have solved the header file issue,
unfortunately I am now getting the following errors:

1c:\chromium\src\views\view.h(161) : error C2589: '(' : illegal token
on right side of '::'
1c:\chromium\src\views\view.h(161) : error C2059: syntax error : '::'
1c:\chromium\src\views\view.h(161) : error C2589: '(' : illegal token
on right side of '::'

There must be another header or definition that I am missing.

Here is a snapshot of the code where the errors are being encountered:

  void SetBounds(int x, int y, int width, int height) {
SetBounds(gfx::Rect(x, y, std::max(0, width), std::max(0,
height)));// IT IS THIS LINE ***
  }

Chromium seems to be undergoing some pretty major changes at the
moment.

Many thanks,
Lea Hayes


On 26 July, 04:48, Juan Baez tux...@gmail.com wrote:
 After some research and SVN history browsing I found out that
 ChromiumCanvas is no more. Instead, use the gfx::Canvas class.  Your
 header files should look somewhat like this (for the example to
 compile):

 #include app/gfx/canvas.h
 #include views/view.h
 #include views/controls/label.h
 #include views/window/window.h
 #include views/window/window_delegate.h

 Hope that helps a little.

 On Jul 25, 8:34 pm, Juan Baez tux...@gmail.com wrote:



  Where you able to figure this out Kruncher? If so, could you provide
  me with some feedback as to how you resolved the problem? I am sort of
  trying to do something similar myself.

  On Jul 20, 2:41 am, Kruncher leaha...@gmail.com wrote:

   Yes, I tried adding thatprojectbut it didn't seem to help.

   On 19 July, 20:49, Thiago Farina thiago.far...@gmail.com wrote:

Did you added the commonprojectto your solution?

On Jul 19, 12:40 pm, Kruncher leaha...@gmail.com wrote:

 For the purposes of practice I am trying to create an empty Win32 Exe
projectthat uses the demonstration code from:

http://dev.chromium.org/developers/design-documents/chromeviews

 To do this I have created a new solution and an emptyproject. I have
 then added the demonstration code, and in theprojectsettings added
 the additional include/lib directories (which I copied from an Exe
projectfrom the Chromium trunk).

 However, when I try to build theproject, I get the following
 compilation error:

 1c:\chromium\src\quick_test\quick_test\views\main_window.cc(4) :
 fatal error C1083: Cannot open include file: 'chrome/common/gfx/
 chrome_canvas.h': No such file or directory

 What steps are required to create a new solution/projectof this
 nature? I would really like to use the views API that Chromium has to
 offer.

 Many thanks,
 Lea Hayes
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Getting Started with a New Project

2009-07-26 Thread Juan Baez

You are not missing any header files.  Windows has its own definition of min
and max, and so does the STL library.  So to avoid conflict between the two,
define the preprocessor directive NOMINMAX in your project.

-Original Message-
From: chromium-dev@googlegroups.com [mailto:chromium-...@googlegroups.com]
On Behalf Of Kruncher
Sent: Sunday, July 26, 2009 2:48 PM
To: Chromium-dev
Subject: [chromium-dev] Re: Getting Started with a New Project


What you have suggested seems to have solved the header file issue,
unfortunately I am now getting the following errors:

1c:\chromium\src\views\view.h(161) : error C2589: '(' : illegal token
on right side of '::'
1c:\chromium\src\views\view.h(161) : error C2059: syntax error : '::'
1c:\chromium\src\views\view.h(161) : error C2589: '(' : illegal token
on right side of '::'

There must be another header or definition that I am missing.

Here is a snapshot of the code where the errors are being encountered:

  void SetBounds(int x, int y, int width, int height) {
SetBounds(gfx::Rect(x, y, std::max(0, width), std::max(0,
height)));// IT IS THIS LINE ***
  }

Chromium seems to be undergoing some pretty major changes at the
moment.

Many thanks,
Lea Hayes


On 26 July, 04:48, Juan Baez tux...@gmail.com wrote:
 After some research and SVN history browsing I found out that
 ChromiumCanvas is no more. Instead, use the gfx::Canvas class.  Your
 header files should look somewhat like this (for the example to
 compile):

 #include app/gfx/canvas.h
 #include views/view.h
 #include views/controls/label.h
 #include views/window/window.h
 #include views/window/window_delegate.h

 Hope that helps a little.

 On Jul 25, 8:34 pm, Juan Baez tux...@gmail.com wrote:



  Where you able to figure this out Kruncher? If so, could you provide
  me with some feedback as to how you resolved the problem? I am sort of
  trying to do something similar myself.

  On Jul 20, 2:41 am, Kruncher leaha...@gmail.com wrote:

   Yes, I tried adding thatprojectbut it didn't seem to help.

   On 19 July, 20:49, Thiago Farina thiago.far...@gmail.com wrote:

Did you added the commonprojectto your solution?

On Jul 19, 12:40 pm, Kruncher leaha...@gmail.com wrote:

 For the purposes of practice I am trying to create an empty Win32
Exe
projectthat uses the demonstration code from:

http://dev.chromium.org/developers/design-documents/chromeviews

 To do this I have created a new solution and an emptyproject. I
have
 then added the demonstration code, and in theprojectsettings added
 the additional include/lib directories (which I copied from an Exe
projectfrom the Chromium trunk).

 However, when I try to build theproject, I get the following
 compilation error:

 1c:\chromium\src\quick_test\quick_test\views\main_window.cc(4) :
 fatal error C1083: Cannot open include file: 'chrome/common/gfx/
 chrome_canvas.h': No such file or directory

 What steps are required to create a new solution/projectof this
 nature? I would really like to use the views API that Chromium has
to
 offer.

 Many thanks,
 Lea Hayes



--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Getting Started with a New Project

2009-07-25 Thread Juan Baez

Where you able to figure this out Kruncher? If so, could you provide
me with some feedback as to how you resolved the problem? I am sort of
trying to do something similar myself.

On Jul 20, 2:41 am, Kruncher leaha...@gmail.com wrote:
 Yes, I tried adding thatprojectbut it didn't seem to help.

 On 19 July, 20:49, Thiago Farina thiago.far...@gmail.com wrote:



  Did you added the commonprojectto your solution?

  On Jul 19, 12:40 pm, Kruncher leaha...@gmail.com wrote:

   For the purposes of practice I am trying to create an empty Win32 Exe
  projectthat uses the demonstration code from:

  http://dev.chromium.org/developers/design-documents/chromeviews

   To do this I have created a new solution and an emptyproject. I have
   then added the demonstration code, and in theprojectsettings added
   the additional include/lib directories (which I copied from an Exe
  projectfrom the Chromium trunk).

   However, when I try to build theproject, I get the following
   compilation error:

   1c:\chromium\src\quick_test\quick_test\views\main_window.cc(4) :
   fatal error C1083: Cannot open include file: 'chrome/common/gfx/
   chrome_canvas.h': No such file or directory

   What steps are required to create a new solution/projectof this
   nature? I would really like to use the views API that Chromium has to
   offer.

   Many thanks,
   Lea Hayes
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Getting Started with a New Project

2009-07-25 Thread Juan Baez

After some research and SVN history browsing I found out that
ChromiumCanvas is no more. Instead, use the gfx::Canvas class.  Your
header files should look somewhat like this (for the example to
compile):

#include app/gfx/canvas.h
#include views/view.h
#include views/controls/label.h
#include views/window/window.h
#include views/window/window_delegate.h

Hope that helps a little.

On Jul 25, 8:34 pm, Juan Baez tux...@gmail.com wrote:
 Where you able to figure this out Kruncher? If so, could you provide
 me with some feedback as to how you resolved the problem? I am sort of
 trying to do something similar myself.

 On Jul 20, 2:41 am, Kruncher leaha...@gmail.com wrote:



  Yes, I tried adding thatprojectbut it didn't seem to help.

  On 19 July, 20:49, Thiago Farina thiago.far...@gmail.com wrote:

   Did you added the commonprojectto your solution?

   On Jul 19, 12:40 pm, Kruncher leaha...@gmail.com wrote:

For the purposes of practice I am trying to create an empty Win32 Exe
   projectthat uses the demonstration code from:

   http://dev.chromium.org/developers/design-documents/chromeviews

To do this I have created a new solution and an emptyproject. I have
then added the demonstration code, and in theprojectsettings added
the additional include/lib directories (which I copied from an Exe
   projectfrom the Chromium trunk).

However, when I try to build theproject, I get the following
compilation error:

1c:\chromium\src\quick_test\quick_test\views\main_window.cc(4) :
fatal error C1083: Cannot open include file: 'chrome/common/gfx/
chrome_canvas.h': No such file or directory

What steps are required to create a new solution/projectof this
nature? I would really like to use the views API that Chromium has to
offer.

Many thanks,
Lea Hayes
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Getting Started with a New Project

2009-07-20 Thread Kruncher

Yes, I tried adding that project but it didn't seem to help.


On 19 July, 20:49, Thiago Farina thiago.far...@gmail.com wrote:
 Did you added the common project to your solution?

 On Jul 19, 12:40 pm, Kruncher leaha...@gmail.com wrote:



  For the purposes of practice I am trying to create an empty Win32 Exe
  project that uses the demonstration code from:

 http://dev.chromium.org/developers/design-documents/chromeviews

  To do this I have created a new solution and an empty project. I have
  then added the demonstration code, and in the project settings added
  the additional include/lib directories (which I copied from an Exe
  project from the Chromium trunk).

  However, when I try to build the project, I get the following
  compilation error:

  1c:\chromium\src\quick_test\quick_test\views\main_window.cc(4) :
  fatal error C1083: Cannot open include file: 'chrome/common/gfx/
  chrome_canvas.h': No such file or directory

  What steps are required to create a new solution/project of this
  nature? I would really like to use the views API that Chromium has to
  offer.

  Many thanks,
  Lea Hayes
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Getting Started with a New Project

2009-07-19 Thread Thiago Farina

Did you added the common project to your solution?

On Jul 19, 12:40 pm, Kruncher leaha...@gmail.com wrote:
 For the purposes of practice I am trying to create an empty Win32 Exe
 project that uses the demonstration code from:

 http://dev.chromium.org/developers/design-documents/chromeviews

 To do this I have created a new solution and an empty project. I have
 then added the demonstration code, and in the project settings added
 the additional include/lib directories (which I copied from an Exe
 project from the Chromium trunk).

 However, when I try to build the project, I get the following
 compilation error:

 1c:\chromium\src\quick_test\quick_test\views\main_window.cc(4) :
 fatal error C1083: Cannot open include file: 'chrome/common/gfx/
 chrome_canvas.h': No such file or directory

 What steps are required to create a new solution/project of this
 nature? I would really like to use the views API that Chromium has to
 offer.

 Many thanks,
 Lea Hayes
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---